ask if push notifications are enabled when start registration

This commit is contained in:
Gabriel Bazán 2016-04-07 15:53:35 -03:00
parent 4e96d0c036
commit abf388b5bb
1 changed files with 2 additions and 1 deletions

View File

@ -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;