{"action":"created","issue":{"url":"https://api.github.com/repos/AppGyver/PushNotifications/issues/3","labels_url":"https://api.github.com/repos/AppGyver/PushNotifications/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/AppGyver/PushNotifications/issues/3/comments","events_url":"https://api.github.com/repos/AppGyver/PushNotifications/issues/3/events","html_url":"https://github.com/AppGyver/PushNotifications/issues/3","id":52827915,"number":3,"title":"Does not work from background webView","user":{"login":"fidoboy","id":143312,"avatar_url":"https://avatars.githubusercontent.com/u/143312?v=3","gravatar_id":"","url":"https://api.github.com/users/fidoboy","html_url":"https://github.com/fidoboy","followers_url":"https://api.github.com/users/fidoboy/followers","following_url":"https://api.github.com/users/fidoboy/following{/other_user}","gists_url":"https://api.github.com/users/fidoboy/gists{/gist_id}","starred_url":"https://api.github.com/users/fidoboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fidoboy/subscriptions","organizations_url":"https://api.github.com/users/fidoboy/orgs","repos_url":"https://api.github.com/users/fidoboy/repos","events_url":"https://api.github.com/users/fidoboy/events{/privacy}","received_events_url":"https://api.github.com/users/fidoboy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-12-24T16:54:05Z","updated_at":"2015-01-07T18:34:12Z","closed_at":null,"body":"I've created my event listener in a initial webView (preloaded from start) where i register the device and create the event listener for foreground and background messages. In my initial tests, this does not work on iOS and neither on Android. The device is being registered fine..."},"comment":{"url":"https://api.github.com/repos/AppGyver/PushNotifications/issues/comments/69068019","html_url":"https://github.com/AppGyver/PushNotifications/issues/3#issuecomment-69068019","issue_url":"https://api.github.com/repos/AppGyver/PushNotifications/issues/3","id":69068019,"user":{"login":"fidoboy","id":143312,"avatar_url":"https://avatars.githubusercontent.com/u/143312?v=3","gravatar_id":"","url":"https://api.github.com/users/fidoboy","html_url":"https://github.com/fidoboy","followers_url":"https://api.github.com/users/fidoboy/followers","following_url":"https://api.github.com/users/fidoboy/following{/other_user}","gists_url":"https://api.github.com/users/fidoboy/gists{/gist_id}","starred_url":"https://api.github.com/users/fidoboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fidoboy/subscriptions","organizations_url":"https://api.github.com/users/fidoboy/orgs","repos_url":"https://api.github.com/users/fidoboy/repos","events_url":"https://api.github.com/users/fidoboy/events{/privacy}","received_events_url":"https://api.github.com/users/fidoboy/received_events","type":"User","site_admin":false},"created_at":"2015-01-07T18:34:12Z","updated_at":"2015-01-07T18:34:12Z","body":"Well, the behavior seems to be a bit inconsistent ATM. On Android, it works (however i'll do more tests) but when the app is on foreground, the notification is being received twice, in my app and at the same time the notification appears on system notifications panel (the same than when the app is in background mode or closed). I can also hear the system sound even when my app is foreground and i don't want to have that system sound. \r\n\r\nOn iOS, in my tests, it only works in background mode, it displays the badge and also the sound, but when the app is in foreground nothing happens...\r\n\r\nIf you can confirm that this works fine on your tests, i'll try to re check my code again to be sure, but i believe that it's all ok and if it works on Android, it does not have sense that it fails on iOS using the same code...\r\n\r\n"}}