Commit e019a8dfd12068c7288a5ff5f74639810e23107c

Authored by Chung Wang
1 parent 0aff91dfe2

unscribe device removes registration id from the server

Showing 1 changed file with 3 additions and 1 deletions Side-by-side Diff

scripts/SettingsController.js View file @ e019a8d
... ... @@ -132,7 +132,9 @@
132 132 // and notifications will stop
133 133 // This just may be in a bad state when the user returns
134 134 pushSwitch.checked = true;
135   - console.error('We were unable to unregister from push');
  135 + removeSubscription(pushSubscription);
  136 + console.error('We were unable to unregister from push, but we removed'+
  137 + 'registration id from the server');
136 138 }
137 139  
138 140 }).catch(function(e) {