{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/1033","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/1033/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/1033/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/1033/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/1033","id":163185013,"number":1033,"title":"on('notification') not firing when tapping on notification while app is in background","user":{"login":"mdbw3","id":20069215,"avatar_url":"https://avatars.githubusercontent.com/u/20069215?v=3","gravatar_id":"","url":"https://api.github.com/users/mdbw3","html_url":"https://github.com/mdbw3","followers_url":"https://api.github.com/users/mdbw3/followers","following_url":"https://api.github.com/users/mdbw3/following{/other_user}","gists_url":"https://api.github.com/users/mdbw3/gists{/gist_id}","starred_url":"https://api.github.com/users/mdbw3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdbw3/subscriptions","organizations_url":"https://api.github.com/users/mdbw3/orgs","repos_url":"https://api.github.com/users/mdbw3/repos","events_url":"https://api.github.com/users/mdbw3/events{/privacy}","received_events_url":"https://api.github.com/users/mdbw3/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/windows","name":"windows","color":"BFD4F2"}],"state":"open","locked":false,"assignee":{"login":"rakatyal","id":12533467,"avatar_url":"https://avatars.githubusercontent.com/u/12533467?v=3","gravatar_id":"","url":"https://api.github.com/users/rakatyal","html_url":"https://github.com/rakatyal","followers_url":"https://api.github.com/users/rakatyal/followers","following_url":"https://api.github.com/users/rakatyal/following{/other_user}","gists_url":"https://api.github.com/users/rakatyal/gists{/gist_id}","starred_url":"https://api.github.com/users/rakatyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rakatyal/subscriptions","organizations_url":"https://api.github.com/users/rakatyal/orgs","repos_url":"https://api.github.com/users/rakatyal/repos","events_url":"https://api.github.com/users/rakatyal/events{/privacy}","received_events_url":"https://api.github.com/users/rakatyal/received_events","type":"User","site_admin":false},"assignees":[{"login":"rakatyal","id":12533467,"avatar_url":"https://avatars.githubusercontent.com/u/12533467?v=3","gravatar_id":"","url":"https://api.github.com/users/rakatyal","html_url":"https://github.com/rakatyal","followers_url":"https://api.github.com/users/rakatyal/followers","following_url":"https://api.github.com/users/rakatyal/following{/other_user}","gists_url":"https://api.github.com/users/rakatyal/gists{/gist_id}","starred_url":"https://api.github.com/users/rakatyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rakatyal/subscriptions","organizations_url":"https://api.github.com/users/rakatyal/orgs","repos_url":"https://api.github.com/users/rakatyal/repos","events_url":"https://api.github.com/users/rakatyal/events{/privacy}","received_events_url":"https://api.github.com/users/rakatyal/received_events","type":"User","site_admin":false}],"milestone":null,"comments":7,"created_at":"2016-06-30T14:51:10Z","updated_at":"2016-07-07T10:07:00Z","closed_at":null,"body":"### Expected Behaviour\r\non('notification') is fired when a notification is tapped while app is in background\r\n\r\n### Actual Behaviour\r\non('notification') isn't fired\r\n\r\n### Reproduce Scenario (including but not limited to)\r\n\r\n#### Steps to Reproduce \r\nOpen app, push on windows button (app goes to background), send notification, tap on notification -> app opens, but on('notification') isn't fired\r\n\r\n#### Platform and Version (eg. Android 5.0 or iOS 9.2.1)\r\nWindows 8.1\r\n\r\n#### (Android) What device vendor (e.g. Samsung, HTC, Sony...)\r\nMicrosoft Lumia 640\r\n\r\n#### Cordova CLI version and cordova platform version\r\ncordova --version      6.2.0\r\ncordova platform version windows 4.3.2\r\n\r\n#### Plugin version\r\n1.7.0\r\n\r\n\r\n\r\nIt works totally fine when app is closed (on('notification') is fired with launchArgs), or when the app is open (on('notification') is fired with all data). But when the app is running but not on foreground and the user taps on a notification, on('notification') isn't fired at all.\r\n\r\nIs this a bug, or expected behavior? Any way workaround available?"},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/comments/231037322","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/1033#issuecomment-231037322","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/1033","id":231037322,"user":{"login":"mdbw3","id":20069215,"avatar_url":"https://avatars.githubusercontent.com/u/20069215?v=3","gravatar_id":"","url":"https://api.github.com/users/mdbw3","html_url":"https://github.com/mdbw3","followers_url":"https://api.github.com/users/mdbw3/followers","following_url":"https://api.github.com/users/mdbw3/following{/other_user}","gists_url":"https://api.github.com/users/mdbw3/gists{/gist_id}","starred_url":"https://api.github.com/users/mdbw3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdbw3/subscriptions","organizations_url":"https://api.github.com/users/mdbw3/orgs","repos_url":"https://api.github.com/users/mdbw3/repos","events_url":"https://api.github.com/users/mdbw3/events{/privacy}","received_events_url":"https://api.github.com/users/mdbw3/received_events","type":"User","site_admin":false},"created_at":"2016-07-07T10:07:00Z","updated_at":"2016-07-07T10:07:00Z","body":"Thanks, @macdonst. For clarity I'll repost my question for @rakatyal \r\n\r\n> Thank you for your reply. The on-notification event isn't fired at all when the app is running in the background, not on tap, not on received.\r\n> \r\n> On both iOS and Android, the on receive event is fired when the user taps on a notification. It doesn't matter if the app is totally closed, or still running in the background. Why is this different for Windows?\r\n> \r\n> As a result you can't perform any action when a user taps on the notification, when the app is still running in the background. I would expect that the app would show up, and immediately after that the on receive event will be triggered. With the current behaviour, the app does show up, but nothing else happens. A user would expect that the action that belongs to the notification is fired after showing, right? That's how almost every app that uses push notifications work.\r\n> \r\n> Please let me know if I'm missing something. Thank you!"}}
{"actor":{"display_login":"mdbw3"}}