{"action":"created","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/961","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/961/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/961/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/961/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/961","id":158507534,"number":961,"title":"Long delay before receiving notification on latest push plugin","user":{"login":"iori57","id":5056279,"avatar_url":"https://avatars.githubusercontent.com/u/5056279?v=3","gravatar_id":"","url":"https://api.github.com/users/iori57","html_url":"https://github.com/iori57","followers_url":"https://api.github.com/users/iori57/followers","following_url":"https://api.github.com/users/iori57/following{/other_user}","gists_url":"https://api.github.com/users/iori57/gists{/gist_id}","starred_url":"https://api.github.com/users/iori57/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iori57/subscriptions","organizations_url":"https://api.github.com/users/iori57/orgs","repos_url":"https://api.github.com/users/iori57/repos","events_url":"https://api.github.com/users/iori57/events{/privacy}","received_events_url":"https://api.github.com/users/iori57/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/labels/ios","name":"ios","color":"BFD4F2"},{"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":2,"created_at":"2016-06-04T14:39:44Z","updated_at":"2016-06-06T02:42:38Z","closed_at":"2016-06-06T02:42:38Z","body":"### Expected Behaviour\r\nPush notification received on client side within a minute after sending\r\n\r\n### Actual Behaviour\r\nPush notification received on client side after 5-10 minutes\r\n\r\n### Reproduce Scenario (including but not limited to)\r\n- After moving from the deprecated pushplugin (actually one of its fork) to the current phonegap-plugin-push plugin.\r\n- Behaves the same whether app is in background or foreground\r\n- Revert to old plugin on same iOS device, doesn't have this issue\r\n- Android doesn't have this issue\r\n\r\n#### Steps to Reproduce \r\n1) Put a breakpoint at didReceiveRemoteNotification\r\n2) Send a push notification\r\n3) Nothing happens\r\n4) Wait 5-10 minutes\r\n5) Breakpoint gets hit, notification gets processed correctly from this point onwards\r\n\r\nAt first I suspect is network or APNS issue (sometimes they get congested). But I tried reverting back to old plugin, the plugin receives the notification immediately every single time, while switching to new plugin the delay is always there. I only have one iOS device now but I can test with more devices when I am back in office by Monday.\r\n\r\n#### Platform and Version (eg. Android 5.0 or iOS 9.2.1)\r\niOS 9.1\r\n\r\n#### (Android) What device vendor (e.g. Samsung, HTC, Sony...)\r\n\r\n#### Cordova CLI version and cordova platform version\r\n\r\n    cordova --version 5.1.1                        \r\n    cordova platform version android 4.1.1\r\n\r\n#### Plugin version\r\n\r\n    cordova plugin version | grep phonegap-plugin-push 1.6.4\r\n\r\n#### Sample Push Data Payload\r\n{\r\n    \"aps\": {\r\n        \"alert\": \"testing\",\r\n        \"badge\": 5,\r\n    }\r\n}\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/223857669","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/961#issuecomment-223857669","issue_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/961","id":223857669,"user":{"login":"iori57","id":5056279,"avatar_url":"https://avatars.githubusercontent.com/u/5056279?v=3","gravatar_id":"","url":"https://api.github.com/users/iori57","html_url":"https://github.com/iori57","followers_url":"https://api.github.com/users/iori57/followers","following_url":"https://api.github.com/users/iori57/following{/other_user}","gists_url":"https://api.github.com/users/iori57/gists{/gist_id}","starred_url":"https://api.github.com/users/iori57/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iori57/subscriptions","organizations_url":"https://api.github.com/users/iori57/orgs","repos_url":"https://api.github.com/users/iori57/repos","events_url":"https://api.github.com/users/iori57/events{/privacy}","received_events_url":"https://api.github.com/users/iori57/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T02:42:38Z","updated_at":"2016-06-06T02:42:38Z","body":"You are right, seems like it is indeed not related to the plugin. Sorry for false alarm. Closing this."}}
{"actor":{"display_login":"iori57"}}