{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic-platform-web-client/issues/88","repository_url":"https://api.github.com/repos/driftyco/ionic-platform-web-client","labels_url":"https://api.github.com/repos/driftyco/ionic-platform-web-client/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-platform-web-client/issues/88/comments","events_url":"https://api.github.com/repos/driftyco/ionic-platform-web-client/issues/88/events","html_url":"https://github.com/driftyco/ionic-platform-web-client/issues/88","id":146639496,"number":88,"title":"Multiple push notification tokens per user/device?","user":{"login":"domharrington","id":848223,"avatar_url":"https://avatars.githubusercontent.com/u/848223?v=3","gravatar_id":"","url":"https://api.github.com/users/domharrington","html_url":"https://github.com/domharrington","followers_url":"https://api.github.com/users/domharrington/followers","following_url":"https://api.github.com/users/domharrington/following{/other_user}","gists_url":"https://api.github.com/users/domharrington/gists{/gist_id}","starred_url":"https://api.github.com/users/domharrington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domharrington/subscriptions","organizations_url":"https://api.github.com/users/domharrington/orgs","repos_url":"https://api.github.com/users/domharrington/repos","events_url":"https://api.github.com/users/domharrington/events{/privacy}","received_events_url":"https://api.github.com/users/domharrington/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-07T14:15:47Z","updated_at":"2016-06-06T14:52:23Z","closed_at":"2016-04-07T15:14:56Z","body":"Is there anyway to detect if this user has already been registered for push notifications before?\r\n\r\nI'm testing an app on device and every time i uninstall/reinstall i get assigned a new push token when i call `push.register()`. This results in multiple push notifications coming to the same device.\r\n\r\nI would like to deregister the first somehow as it will never be used again? Is this possible?\r\n\r\nI know that there is the `push.unregister()` api when you have a push notification instance, but i'm referring to the other, old tokens?"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic-platform-web-client/issues/comments/223982938","html_url":"https://github.com/driftyco/ionic-platform-web-client/issues/88#issuecomment-223982938","issue_url":"https://api.github.com/repos/driftyco/ionic-platform-web-client/issues/88","id":223982938,"user":{"login":"domharrington","id":848223,"avatar_url":"https://avatars.githubusercontent.com/u/848223?v=3","gravatar_id":"","url":"https://api.github.com/users/domharrington","html_url":"https://github.com/domharrington","followers_url":"https://api.github.com/users/domharrington/followers","following_url":"https://api.github.com/users/domharrington/following{/other_user}","gists_url":"https://api.github.com/users/domharrington/gists{/gist_id}","starred_url":"https://api.github.com/users/domharrington/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domharrington/subscriptions","organizations_url":"https://api.github.com/users/domharrington/orgs","repos_url":"https://api.github.com/users/domharrington/repos","events_url":"https://api.github.com/users/domharrington/events{/privacy}","received_events_url":"https://api.github.com/users/domharrington/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T14:52:23Z","updated_at":"2016-06-06T14:52:23Z","body":"If anyone wants a quicker way to clear out their ionic user device tokens, i've written a greasemonkey script which adds a \"Delete\" button next to each token on the /users/list page of https://apps.ionic.io.\r\n\r\nhttps://gist.github.com/domharrington/d30771913655ad7950982dffdef765f9\r\n\r\n![screen shot 2016-06-06 at 15 47 04](https://cloud.githubusercontent.com/assets/848223/15826208/9baec9fc-2bfe-11e6-94ba-f998d5f768e1.png)\r\n\r\nThis makes a request to the DELETE api documented here: http://docs.ionic.io/docs/api-push#tokens-delete"}}
{"actor":{"display_login":"domharrington"}}