Merge pull request #264 from gabrielbazan7/fix/pushN
Fix/push notifications
This commit is contained in:
commit
8fe2b2f84e
1 changed files with 7 additions and 0 deletions
|
|
@ -296,6 +296,8 @@ angular.module('copayApp.services')
|
|||
if (!val) {
|
||||
return cb(new Error('NONAGREEDDISCLAIMER: Non agreed disclaimer'));
|
||||
}
|
||||
if (usePushNotifications)
|
||||
root.pushNotificationsInit();
|
||||
return cb();
|
||||
});
|
||||
});
|
||||
|
|
@ -331,6 +333,11 @@ angular.module('copayApp.services')
|
|||
}, 100);
|
||||
}
|
||||
});
|
||||
|
||||
push.on('error', function(e) {
|
||||
$log.warn('Error with push notifications:' + e.message);
|
||||
});
|
||||
|
||||
};
|
||||
|
||||
root.loadAndBindProfile = function(cb) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue