mirror of https://github.com/BTCPrivate/copay.git
ask if push notifications are enabled when start registration
This commit is contained in:
parent
4e96d0c036
commit
abf388b5bb
|
@ -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…
Reference in New Issue