diff --git a/js/services/notifications.js b/js/services/notifications.js index 4c3c00e4b..bd8dc1920 100644 --- a/js/services/notifications.js +++ b/js/services/notifications.js @@ -198,7 +198,12 @@ factory('notification', ['$timeout', $timeout(function removeFromQueueTimeout() { queue.splice(queue.indexOf(notification), 1); }, settings[type].duration); + } + // Movile notification + window.navigator.vibrate([200,100,200]); + if (document.hidden && (type == 'info' || type == 'funds')) { + new window.Notification(title, {body: content}); } this.save();