React-native-fcm: Unable to receive notifications on Xcode simulator

Created on 2 Aug 2016  路  4Comments  路  Source: evollu/react-native-fcm

I managed to receive notifications payload/ data for Android. However, I am trying to do the same for iOS.

I tried:

  • Xcode->Click on project file->Capabilities tab->Background Modes->Remote Notifications
  • also tried adding Push Notifications Capabilities

Xcode console logs:
Successfully logs FCMToken.

<FIRMessaging/WARNING> FIRMessaging AppDelegate proxy enabled, will swizzle app delegate remote notification receiver handlers. Add "FirebaseAppDelegateProxyEnabled" to your Info.plist and set it to NO
Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 "(null)"
<FIRAnalytics/INFO> Firebase Analytics v.3201000 started
<FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/Y0Yjwu)
<FIRAnalytics/INFO> Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
<FIRAnalytics/INFO> Firebase Analytics enabled
<FIRInstanceID/WARNING> Failed to fetch APNS token Error Domain=NSCocoaErrorDomain Code=3010 "REMOTE_NOTIFICATION_SIMULATOR_NOT_SUPPORTED_NSERROR_DESCRIPTION" UserInfo={NSLocalizedDescription=REMOTE_NOTIFICATION_SIMULATOR_NOT_SUPPORTED_NSERROR_DESCRIPTION}

Most helpful comment

You can not receive remove notification from iOS simulator.
Check out REMOTE_NOTIFICATION_SIMULATOR_NOT_SUPPORTED_NSERROR_DESCRIPTION on your log.

All 4 comments

You can not receive remove notification from iOS simulator.
Check out REMOTE_NOTIFICATION_SIMULATOR_NOT_SUPPORTED_NSERROR_DESCRIPTION on your log.

@colus001 is right. You have to use a real device for notification

this could be added to the README, what do you think? (I can do it)

I would appreciate that, since I just spent a while before finding that out :P

Was this page helpful?
0 / 5 - 0 ratings