Merge pull request #264 from gabrielbazan7/fix/pushN

Fix/push notifications
This commit is contained in:
Matias Alejo Garcia 2016-10-07 15:26:09 -03:00 committed by GitHub
commit 8fe2b2f84e
1 changed files with 7 additions and 0 deletions

View File

@ -296,6 +296,8 @@ angular.module('copayApp.services')
if (!val) { if (!val) {
return cb(new Error('NONAGREEDDISCLAIMER: Non agreed disclaimer')); return cb(new Error('NONAGREEDDISCLAIMER: Non agreed disclaimer'));
} }
if (usePushNotifications)
root.pushNotificationsInit();
return cb(); return cb();
}); });
}); });
@ -331,6 +333,11 @@ angular.module('copayApp.services')
}, 100); }, 100);
} }
}); });
push.on('error', function(e) {
$log.warn('Error with push notifications:' + e.message);
});
}; };
root.loadAndBindProfile = function(cb) { root.loadAndBindProfile = function(cb) {