react-native-fcm: [ERROR] "_FCMNotificationReceived", referenced from:

When i run react-native run-ios,occured as follow

  "_FCMNotificationReceived", referenced from:  
-[AppDelegate application:didReceiveRemoteNotification:fetchCompletionHandler:] in AppDelegate.o
   -[AppDelegate application:didReceiveRemoteNotification:fetchCompletionHandler:] in AppDelegate.o

any one who suffered the same things?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 26 (6 by maintainers)

Most upvoted comments

I ran react-native link react-native-fcm again, followed by a clean build, and now it works! Apparently some links had been lost in all the updates. Android was correctly linked still, but not IOS.

Thanks!

To fix it, I had to update the pod file like below.

  pod 'Firebase', '~> 4.0.2'
  pod 'Firebase/Core', '~> 4.0.2'
  pod 'Firebase/Messaging', '~> 4.0.2'