From abf388b5bb1ba3653f72f15f1cf2e0369f0aa30a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Baz=C3=A1n?= Date: Thu, 7 Apr 2016 15:53:35 -0300 Subject: [PATCH] ask if push notifications are enabled when start registration --- src/js/services/pushNotificationsService.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;