diff --git a/src/js/services/pushNotificationsService.js b/src/js/services/pushNotificationsService.js index 92bf376e8..d2649e949 100644 --- a/src/js/services/pushNotificationsService.js +++ b/src/js/services/pushNotificationsService.js @@ -12,7 +12,8 @@ angular.module('copayApp.services') if (root.token) return; $log.debug('Starting push notification registration'); root.token = data.registrationId; - root.enableNotifications(walletsClients); + var config = configService.getSync(); + if (config.pushNotifications.enabled) root.enableNotifications(walletsClients); }); return push;