{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/250","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/250/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/250/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/250/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/250","id":112563268,"number":250,"title":"Re-register","user":{"login":"adyz","id":611174,"avatar_url":"https://avatars.githubusercontent.com/u/611174?v=3","gravatar_id":"","url":"https://api.github.com/users/adyz","html_url":"https://github.com/adyz","followers_url":"https://api.github.com/users/adyz/followers","following_url":"https://api.github.com/users/adyz/following{/other_user}","gists_url":"https://api.github.com/users/adyz/gists{/gist_id}","starred_url":"https://api.github.com/users/adyz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adyz/subscriptions","organizations_url":"https://api.github.com/users/adyz/orgs","repos_url":"https://api.github.com/users/adyz/repos","events_url":"https://api.github.com/users/adyz/events{/privacy}","received_events_url":"https://api.github.com/users/adyz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/retest","name":"retest","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/milestones/4","html_url":"https://github.com/phonegap/phonegap-plugin-push/milestones/Release%201.4.0","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/milestones/4/labels","id":1316489,"number":4,"title":"Release 1.4.0","description":"","creator":{"login":"macdonst","id":353180,"avatar_url":"https://avatars.githubusercontent.com/u/353180?v=3","gravatar_id":"","url":"https://api.github.com/users/macdonst","html_url":"https://github.com/macdonst","followers_url":"https://api.github.com/users/macdonst/followers","following_url":"https://api.github.com/users/macdonst/following{/other_user}","gists_url":"https://api.github.com/users/macdonst/gists{/gist_id}","starred_url":"https://api.github.com/users/macdonst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macdonst/subscriptions","organizations_url":"https://api.github.com/users/macdonst/orgs","repos_url":"https://api.github.com/users/macdonst/repos","events_url":"https://api.github.com/users/macdonst/events{/privacy}","received_events_url":"https://api.github.com/users/macdonst/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":14,"state":"open","created_at":"2015-09-21T15:03:08Z","updated_at":"2015-10-26T20:47:43Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2015-10-21T11:06:54Z","updated_at":"2015-10-26T20:47:43Z","closed_at":"2015-10-26T20:47:43Z","body":"Hi guys,\r\n\r\nWonderfull project here.\r\n\r\nIn my app I have a check-box for notifications (on and of)\r\n\r\nOn app device ready I call the init method\r\n\r\n\t\tpush = PushNotification.init({\r\n\t\t\t\"android\": {\"senderID\": \"12345679\"},\r\n\t\t\t\"ios\": {\"alert\": \"true\", \"badge\": \"true\", \"sound\": \"true\"},\r\n\t\t\t\"windows\": {}\r\n\t\t});\r\n\r\n\r\nwhen the users unchecks the box I call the unregister function\r\n\r\n\t\tpush.unregister(successHandler, errorHandler);\r\n\r\nWhat do I do to register the user back? Will I call the same init function? is so, the `on('registration')` does not trigger."},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/comments/151280251","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/250#issuecomment-151280251","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/250","id":151280251,"user":{"login":"macdonst","id":353180,"avatar_url":"https://avatars.githubusercontent.com/u/353180?v=3","gravatar_id":"","url":"https://api.github.com/users/macdonst","html_url":"https://github.com/macdonst","followers_url":"https://api.github.com/users/macdonst/followers","following_url":"https://api.github.com/users/macdonst/following{/other_user}","gists_url":"https://api.github.com/users/macdonst/gists{/gist_id}","starred_url":"https://api.github.com/users/macdonst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macdonst/subscriptions","organizations_url":"https://api.github.com/users/macdonst/orgs","repos_url":"https://api.github.com/users/macdonst/repos","events_url":"https://api.github.com/users/macdonst/events{/privacy}","received_events_url":"https://api.github.com/users/macdonst/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T20:47:43Z","updated_at":"2015-10-26T20:47:43Z","body":"Cannot reproduce, assume it is fixed by the code for issue #57."}}