{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/158","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/158/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/158/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/158","id":107601489,"number":158,"title":"\"Notification\" Event Not Firing When Closed Through App Launcher","user":{"login":"ryanpager","id":570872,"avatar_url":"https://avatars.githubusercontent.com/u/570872?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanpager","html_url":"https://github.com/ryanpager","followers_url":"https://api.github.com/users/ryanpager/followers","following_url":"https://api.github.com/users/ryanpager/following{/other_user}","gists_url":"https://api.github.com/users/ryanpager/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanpager/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanpager/subscriptions","organizations_url":"https://api.github.com/users/ryanpager/orgs","repos_url":"https://api.github.com/users/ryanpager/repos","events_url":"https://api.github.com/users/ryanpager/events{/privacy}","received_events_url":"https://api.github.com/users/ryanpager/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":29,"created_at":"2015-09-21T21:25:15Z","updated_at":"2016-04-25T17:56:03Z","closed_at":null,"body":"So this is the use case im following:\r\n\r\na. Push notification goes to phone\r\nb. User clicks on notification from lock, which opens the app & triggers the 'notification' event\r\nc. Do some obligatory action based on additionalData\r\n\r\nThis is working perfectly, except it seems like the 'notification' event does not get triggered ever again if the user closes the application through the app launcher (square button & swipe) and the app has to coldstart.\r\n\r\nSo a run down of the problem in short:\r\n\r\na. User opens application, push is registered. \r\nb. 'Notification' events now get triggered as expected.\r\nc. User closes the application through the app launcher.\r\nd. 'Notification' events no longer get triggered....ever.\r\n\r\nAny ideas on this one?"},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/comments/214461698","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/158#issuecomment-214461698","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/158","id":214461698,"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":"2016-04-25T17:56:03Z","updated_at":"2016-04-25T17:56:03Z","body":"@harley1011 don't increment. Have the app communicate with your app server to tell it when it has read a push message. Keep the canonical count on the server not the device."}}