Merge pull request #6060 from cmgustavo/bug/creating-wallet-push-notif
Subscribe push notifications after create a wallet
This commit is contained in:
commit
15b7330d90
2 changed files with 10 additions and 1 deletions
|
|
@ -23,6 +23,14 @@ angular.module('copayApp.services').factory('pushNotificationsService', function
|
|||
});
|
||||
};
|
||||
|
||||
root.updateSubscription = function(walletClient) {
|
||||
if (!_token) {
|
||||
$log.warn('Push notifications disabled for this device. Nothing to do here.');
|
||||
return;
|
||||
}
|
||||
_subscribe(walletClient);
|
||||
};
|
||||
|
||||
root.enable = function() {
|
||||
if (!_token) {
|
||||
$log.warn('No token available for this device. Cannot set push notifications. Needs registration.');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue