ask if push notifications are enabled when start registration
This commit is contained in:
parent
4e96d0c036
commit
abf388b5bb
1 changed files with 2 additions and 1 deletions
|
|
@ -12,7 +12,8 @@ angular.module('copayApp.services')
|
||||||
if (root.token) return;
|
if (root.token) return;
|
||||||
$log.debug('Starting push notification registration');
|
$log.debug('Starting push notification registration');
|
||||||
root.token = data.registrationId;
|
root.token = data.registrationId;
|
||||||
root.enableNotifications(walletsClients);
|
var config = configService.getSync();
|
||||||
|
if (config.pushNotifications.enabled) root.enableNotifications(walletsClients);
|
||||||
});
|
});
|
||||||
|
|
||||||
return push;
|
return push;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue