{"action":"closed","issue":{"url":"https://api.github.com/repos/evollu/react-native-fcm/issues/229","repository_url":"https://api.github.com/repos/evollu/react-native-fcm","labels_url":"https://api.github.com/repos/evollu/react-native-fcm/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/evollu/react-native-fcm/issues/229/comments","events_url":"https://api.github.com/repos/evollu/react-native-fcm/issues/229/events","html_url":"https://github.com/evollu/react-native-fcm/issues/229","id":195720988,"number":229,"title":"[Update Documentation] - Error Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 (null)","user":{"login":"TimonSotiropoulos","id":10914502,"avatar_url":"https://avatars.githubusercontent.com/u/10914502?v=3","gravatar_id":"","url":"https://api.github.com/users/TimonSotiropoulos","html_url":"https://github.com/TimonSotiropoulos","followers_url":"https://api.github.com/users/TimonSotiropoulos/followers","following_url":"https://api.github.com/users/TimonSotiropoulos/following{/other_user}","gists_url":"https://api.github.com/users/TimonSotiropoulos/gists{/gist_id}","starred_url":"https://api.github.com/users/TimonSotiropoulos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimonSotiropoulos/subscriptions","organizations_url":"https://api.github.com/users/TimonSotiropoulos/orgs","repos_url":"https://api.github.com/users/TimonSotiropoulos/repos","events_url":"https://api.github.com/users/TimonSotiropoulos/events{/privacy}","received_events_url":"https://api.github.com/users/TimonSotiropoulos/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-12-15T05:36:05Z","updated_at":"2016-12-20T14:20:15Z","closed_at":"2016-12-20T14:20:15Z","body":"I just wanted to suggest an update to the documentation as I have struggled with this issue for the last few hours. \r\n\r\nIf you have set the FirebaseAppDelegateProxyEnabled to NO in your info.plist file of your xcode project, you need to specifically set the APNSToken for your Firebase Instance otherwise your app will not receive push notifications as all. You just need to add the following method to your App Delegate:\r\n```\r\n- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {\r\n  \r\n    // for production\r\n    [[FIRInstanceID instanceID] setAPNSToken:deviceToken type:FIRInstanceIDAPNSTokenTypeProd];\r\n    // for development\r\n    // [[FIRInstanceID instanceID] setAPNSToken:deviceToken type:FIRInstanceIDAPNSTokenTypeSandbox];\r\n}\r\n```\r\nThis was outlined in one of the comments from this SO question -> http://stackoverflow.com/questions/37458530/firebase-when-receive-push-notification-did-not-receive-the-popup?rq=1 \r\n\r\nThanks!\r\n\r\n"}}
{"actor":{"display_login":"evollu"}}