use detect language in push notifications, save remote preferences when creating a new profile
This commit is contained in:
parent
431d0fd86a
commit
509047e2b0
1 changed files with 6 additions and 2 deletions
|
|
@ -1287,8 +1287,12 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
|||
|
||||
$rootScope.$on('Local/SubscribeNotifications', function(event) {
|
||||
if (!self.usePushNotifications) return;
|
||||
|
||||
pushNotificationsService.enableNotifications();
|
||||
self.updateRemotePreferences({
|
||||
saveAll: true
|
||||
}, function() {
|
||||
$log.debug('Remote preferences saved');
|
||||
pushNotificationsService.enableNotifications();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue