mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #264 from gabrielbazan7/fix/pushN
Fix/push notifications
This commit is contained in:
commit
8fe2b2f84e
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue