{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap-build/PushPlugin/issues/525","labels_url":"https://api.github.com/repos/phonegap-build/PushPlugin/issues/525/labels{/name}","comments_url":"https://api.github.com/repos/phonegap-build/PushPlugin/issues/525/comments","events_url":"https://api.github.com/repos/phonegap-build/PushPlugin/issues/525/events","html_url":"https://github.com/phonegap-build/PushPlugin/issues/525","id":65869470,"number":525,"title":"OnResume from background, all my notification disappear but no Event Call Back","user":{"login":"clarklight","id":9299584,"avatar_url":"https://avatars.githubusercontent.com/u/9299584?v=3","gravatar_id":"","url":"https://api.github.com/users/clarklight","html_url":"https://github.com/clarklight","followers_url":"https://api.github.com/users/clarklight/followers","following_url":"https://api.github.com/users/clarklight/following{/other_user}","gists_url":"https://api.github.com/users/clarklight/gists{/gist_id}","starred_url":"https://api.github.com/users/clarklight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clarklight/subscriptions","organizations_url":"https://api.github.com/users/clarklight/orgs","repos_url":"https://api.github.com/users/clarklight/repos","events_url":"https://api.github.com/users/clarklight/events{/privacy}","received_events_url":"https://api.github.com/users/clarklight/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2015-04-02T07:51:39Z","updated_at":"2015-07-08T15:26:52Z","closed_at":null,"body":"Hi \r\n\r\n I am wondering how do i handle onResume functions.\r\nWhen i resume the app by either clicking on the Icon, the push notifications from the tray, all get wiped, but there are no event call back, none of the message get appeneded, they just disappeared. \r\n\r\nFor the foreground \r\n\r\n  if (e.foreground)               {\r\n                         \r\n                     \r\n                $(\"#app-status-ul\").append('<li>--INLINE NOTIFICATION--' + '</li>');\r\n\r\n                // if the notification contains a soundname, play it.\r\n                var my_media = new Media(\"/android_asset/www/\"+e.soundname);\r\n                my_media.play();\r\n                }\r\n\r\nFor Resume \r\n\r\nwould i do \r\n    function onResume() {\r\n  onNotificationGCM = function(e) {\r\n   $(\"#app-status-ul\").append('<li>--INLINE NOTIFICATION--' + '</li>');\r\n}\r\n}\r\ndocument.addEventListener(\"resume\", onResume, true);\r\n\r\n??"},"comment":{"url":"https://api.github.com/repos/phonegap-build/PushPlugin/issues/comments/119624776","html_url":"https://github.com/phonegap-build/PushPlugin/issues/525#issuecomment-119624776","issue_url":"https://api.github.com/repos/phonegap-build/PushPlugin/issues/525","id":119624776,"user":{"login":"matt-way","id":4574957,"avatar_url":"https://avatars.githubusercontent.com/u/4574957?v=3","gravatar_id":"","url":"https://api.github.com/users/matt-way","html_url":"https://github.com/matt-way","followers_url":"https://api.github.com/users/matt-way/followers","following_url":"https://api.github.com/users/matt-way/following{/other_user}","gists_url":"https://api.github.com/users/matt-way/gists{/gist_id}","starred_url":"https://api.github.com/users/matt-way/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matt-way/subscriptions","organizations_url":"https://api.github.com/users/matt-way/orgs","repos_url":"https://api.github.com/users/matt-way/repos","events_url":"https://api.github.com/users/matt-way/events{/privacy}","received_events_url":"https://api.github.com/users/matt-way/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T15:26:52Z","updated_at":"2015-07-08T15:26:52Z","body":"I am having similar problems with the plugin too. I noticed that the android clear on pause issue might have been a simple mistake on the devs part. I believe the two clear lines (134-135) should be in the resume event instead (which would make for more standard functionality)."}}