{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/457","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/457/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/457/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/457/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/457","id":123894640,"number":457,"title":"Should I register my device every time the app starts?","user":{"login":"srameshr","id":8149408,"avatar_url":"https://avatars.githubusercontent.com/u/8149408?v=3","gravatar_id":"","url":"https://api.github.com/users/srameshr","html_url":"https://github.com/srameshr","followers_url":"https://api.github.com/users/srameshr/followers","following_url":"https://api.github.com/users/srameshr/following{/other_user}","gists_url":"https://api.github.com/users/srameshr/gists{/gist_id}","starred_url":"https://api.github.com/users/srameshr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srameshr/subscriptions","organizations_url":"https://api.github.com/users/srameshr/orgs","repos_url":"https://api.github.com/users/srameshr/repos","events_url":"https://api.github.com/users/srameshr/events{/privacy}","received_events_url":"https://api.github.com/users/srameshr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-25T18:57:20Z","updated_at":"2015-12-26T15:33:34Z","closed_at":"2015-12-26T15:09:56Z","body":"``` \r\nwindow.pushPlugin = PushNotification.init({\r\n          android: {\r\n              senderID: \"42377729696\",\r\n              forceShow: true,\r\n          }\r\n        });\r\n\r\n        window.pushPlugin.on('notification', function(data) {\r\n          console.log(data);\r\n        });\r\n```\r\n\r\nThe ```notification``` event, wont be available until and unless I register it every time\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/comments/167334673","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/457#issuecomment-167334673","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/457","id":167334673,"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-12-26T15:33:34Z","updated_at":"2015-12-26T15:33:34Z","body":"@srameshr yup, will do. Docs need updating which is something I have planned before end of January. They'll be way better."}}