fix push notifications and remove onboarding email

This commit is contained in:
Gabriel Bazán 2016-10-08 20:19:55 -03:00
commit 3320510d35
9 changed files with 74 additions and 53 deletions

View file

@ -14,7 +14,6 @@ angular.module('copayApp.services')
var push = PushNotification.init(defaults.pushNotifications.config);
push.on('registration', function(data) {
if (root.token) return;
$log.debug('Starting push notification registration');
root.token = data.registrationId;
var config = configService.getSync();
@ -31,7 +30,7 @@ angular.module('copayApp.services')
if (!config.pushNotifications.enabled) return;
if (!root.token) {
$log.warn('No token available for this device. Cannot set push notifications');
$log.warn('No token available for this device. Cannot set push notifications. Needs registration.');
return;
}