From e019a8dfd12068c7288a5ff5f74639810e23107c Mon Sep 17 00:00:00 2001 From: CKW Date: Tue, 2 Jun 2015 22:26:11 -0700 Subject: [PATCH] unscribe device removes registration id from the server --- scripts/SettingsController.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/SettingsController.js b/scripts/SettingsController.js index 5ea8a91..fac65c3 100644 --- a/scripts/SettingsController.js +++ b/scripts/SettingsController.js @@ -132,7 +132,9 @@ angular.module('flashy.SettingsController', ['ui.router']). // and notifications will stop // This just may be in a bad state when the user returns pushSwitch.checked = true; - console.error('We were unable to unregister from push'); + removeSubscription(pushSubscription); + console.error('We were unable to unregister from push, but we removed'+ + 'registration id from the server'); } }).catch(function(e) { -- 1.9.1