{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/2658","labels_url":"https://api.github.com/repos/facebook/react-native/issues/2658/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/2658/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/2658/events","html_url":"https://github.com/facebook/react-native/issues/2658","id":106186042,"number":2658,"title":"[PushNotificationIOS] popInitialNotification always returns null","user":{"login":"tachim","id":11812,"avatar_url":"https://avatars.githubusercontent.com/u/11812?v=3","gravatar_id":"","url":"https://api.github.com/users/tachim","html_url":"https://github.com/tachim","followers_url":"https://api.github.com/users/tachim/followers","following_url":"https://api.github.com/users/tachim/following{/other_user}","gists_url":"https://api.github.com/users/tachim/gists{/gist_id}","starred_url":"https://api.github.com/users/tachim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tachim/subscriptions","organizations_url":"https://api.github.com/users/tachim/orgs","repos_url":"https://api.github.com/users/tachim/repos","events_url":"https://api.github.com/users/tachim/events{/privacy}","received_events_url":"https://api.github.com/users/tachim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-09-12T21:39:14Z","updated_at":"2015-09-29T22:12:49Z","closed_at":null,"body":"I followed the directions [here](https://medium.com/@DannyvanderJagt/how-to-use-push-notifications-in-react-native-41e8b14aadae) to set up push notifs. In my AppStateIOS 'active' change callback popInitialNotification always returns null even when the app is launched from a click on a push notif. \r\n\r\nFor anyone else seeing this problem, a workaround is to use the PushNotificationIOS notification callback to add to a notif queue when the AppStateIOS.currentState is 'background' and then read from that queue in the 'active' change callback."},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/144206141","html_url":"https://github.com/facebook/react-native/issues/2658#issuecomment-144206141","issue_url":"https://api.github.com/repos/facebook/react-native/issues/2658","id":144206141,"user":{"login":"ericvicenti","id":1483597,"avatar_url":"https://avatars.githubusercontent.com/u/1483597?v=3","gravatar_id":"","url":"https://api.github.com/users/ericvicenti","html_url":"https://github.com/ericvicenti","followers_url":"https://api.github.com/users/ericvicenti/followers","following_url":"https://api.github.com/users/ericvicenti/following{/other_user}","gists_url":"https://api.github.com/users/ericvicenti/gists{/gist_id}","starred_url":"https://api.github.com/users/ericvicenti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericvicenti/subscriptions","organizations_url":"https://api.github.com/users/ericvicenti/orgs","repos_url":"https://api.github.com/users/ericvicenti/repos","events_url":"https://api.github.com/users/ericvicenti/events{/privacy}","received_events_url":"https://api.github.com/users/ericvicenti/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T22:12:49Z","updated_at":"2015-09-29T22:12:49Z","body":"Right, the cold start is when the app is not already running in the background or the user has manually terminated it. \r\n\r\nThere are some similarities with this SO question:\r\n\r\nhttp://stackoverflow.com/questions/28526709/waking-up-app-from-background-ios\r\n\r\nNotifs from `application:didReceiveRemoteNotification` gets passed to JS as a notification event. Notifs from `application:didFinishLaunchingWithOptions` are available in `popInitialNotification`"}}