diff --git a/src/js/services/notifications.js b/src/js/services/notifications.js index e1e60f07e..6b63504d0 100644 --- a/src/js/services/notifications.js +++ b/src/js/services/notifications.js @@ -1,8 +1,8 @@ 'use strict'; angular.module('copayApp.services'). -factory('notification', ['$timeout', - function($timeout) { +factory('notification', ['$timeout','isCordova', + function($timeout, isCordova) { var notifications = []; @@ -225,7 +225,7 @@ factory('notification', ['$timeout', window.navigator.vibrate([200, 100, 200]); }; - if (document.hidden && (type == 'info' || type == 'funds')) { + if (document.hidden && (type == 'info' || type == 'funds') && !isCordova) { new window.Notification(title, { body: content, icon: 'img/notification.png'