{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/729","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/729/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/729/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/729/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/729","id":142297316,"number":729,"title":"Notification cannot get when the app is not run background","user":{"login":"jianhao1203","id":12949783,"avatar_url":"https://avatars.githubusercontent.com/u/12949783?v=3","gravatar_id":"","url":"https://api.github.com/users/jianhao1203","html_url":"https://github.com/jianhao1203","followers_url":"https://api.github.com/users/jianhao1203/followers","following_url":"https://api.github.com/users/jianhao1203/following{/other_user}","gists_url":"https://api.github.com/users/jianhao1203/gists{/gist_id}","starred_url":"https://api.github.com/users/jianhao1203/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jianhao1203/subscriptions","organizations_url":"https://api.github.com/users/jianhao1203/orgs","repos_url":"https://api.github.com/users/jianhao1203/repos","events_url":"https://api.github.com/users/jianhao1203/events{/privacy}","received_events_url":"https://api.github.com/users/jianhao1203/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-21T09:41:55Z","updated_at":"2016-03-21T20:56:59Z","closed_at":null,"body":"### Expected Behaviour\r\nNotification can be get no matter the app is run / not run in background or foreground\r\n\r\n### Actual Behaviour\r\nNotification cannot be get if the app is being killed at background.\r\n\r\n### Reproduce Scenario (including but not limited to)\r\n\r\n#### Steps to Reproduce \r\n\r\n#### Platform and Version (eg. Android 5.0 or iOS 9.2.1)\r\nAndroid 5.0.2\r\n\r\n#### (Android) What device vendor (e.g. Samsung, HTC, Sony...)\r\nMi 4i\r\n\r\n#### Cordova CLI version and cordova platform version\r\n\r\n    cordova --version                                     6.0.0\r\n    cordova platform version android                    android 5.1.1\r\n\r\n#### Plugin version\r\n\r\n    cordova plugin version | grep phonegap-plugin-push    (phonegap-plugin-push 1.6.0)\r\n\r\n#### Sample Push Data Payload\r\n\r\n#### Sample Code that illustrates the problem\r\n\r\n#### Logs taken while reproducing problem\r\n"},"comment":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/comments/199480963","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/729#issuecomment-199480963","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/729","id":199480963,"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-03-21T20:56:59Z","updated_at":"2016-03-21T20:56:59Z","body":"@jianhao1203 when your app is in the background do you see the notification in the notification tray? What is a sample payload you send?"}}