{"action":"closed","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/238","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/238/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/238/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/238","id":112128451,"number":238,"title":"Registering on iOS 9","user":{"login":"alexbuijs","id":19471,"avatar_url":"https://avatars.githubusercontent.com/u/19471?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbuijs","html_url":"https://github.com/alexbuijs","followers_url":"https://api.github.com/users/alexbuijs/followers","following_url":"https://api.github.com/users/alexbuijs/following{/other_user}","gists_url":"https://api.github.com/users/alexbuijs/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbuijs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbuijs/subscriptions","organizations_url":"https://api.github.com/users/alexbuijs/orgs","repos_url":"https://api.github.com/users/alexbuijs/repos","events_url":"https://api.github.com/users/alexbuijs/events{/privacy}","received_events_url":"https://api.github.com/users/alexbuijs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-19T11:49:49Z","updated_at":"2015-10-19T12:30:13Z","closed_at":"2015-10-19T12:30:13Z","body":"Hi, thanks for this awesome plugin!\r\n\r\nI noticed the following weird behaviour on iOS 9.0.2 and version 1.3.0 of this plugin (i'm not sure if this happens on earlier versions of iOS as well). Also it only happens about 50% of the time.\r\n\r\nSteps to reproduce:\r\n- new install app with this plugin\r\n- call PushNotification.init with options\r\n- don't accept or deny notifications when system popup is shown\r\n\r\nResult (about 50% of the time):\r\n- the registration event is called with a token!\r\n- when the used accepts, the registration event is called again!\r\n\r\nWhen the user chooses to reject notifications, of course messages won't arrive. When he later turns them on in the settings app, they will arrive with the previous obtained token.\r\n\r\nThe problem is that my app cannot reliably know if registration was successful or not, since It is possible a token is registered and a moment later the user chooses not to allow notifications... Also, it is undesirable that the registration event is called twice when the user accepts them."}}