enable livenet push notifications
This commit is contained in:
parent
86f5651c0d
commit
c17fe98cec
2 changed files with 7 additions and 5 deletions
|
|
@ -37,7 +37,7 @@ angular.module('copayApp.services')
|
|||
if (!usePushNotifications) return;
|
||||
|
||||
storageService.getDeviceToken(function(err, token) {
|
||||
lodash.forEach(profileService.getWallets('testnet'), function(wallet) {
|
||||
lodash.forEach(profileService.getWallets(null), function(wallet) {
|
||||
var opts = {};
|
||||
opts.type = isMobile.iOS() ? "ios" : isMobile.Android() ? "android" : null;
|
||||
opts.token = token;
|
||||
|
|
@ -52,7 +52,7 @@ angular.module('copayApp.services')
|
|||
root.disableNotifications = function() {
|
||||
if (!usePushNotifications) return;
|
||||
|
||||
lodash.forEach(profileService.getWallets('testnet'), function(wallet) {
|
||||
lodash.forEach(profileService.getWallets(null), function(wallet) {
|
||||
root.unsubscribe(wallet.id, function(err) {
|
||||
if (err) $log.warn('Subscription error: ' + err.code);
|
||||
else $log.debug('Unsubscribed from push notifications service');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue