Merge pull request #20 from gabrielbazan7/fix/tapOnNot
ask if push notifications are enabled when start registration
This commit is contained in:
commit
65de41957d
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue