React-native-firebase: FCMNotificationReceived warning errors for iOS

Created on 2 Jun 2018  路  5Comments  路  Source: invertase/react-native-firebase

Issue

I tried using the Cloud Messaging for iOS but it's not working, I tried it using on iPhone 6s and 7 devices but I could not get to work on this part for iOS, on android it works ok.

My Issue is why the error FCMNotificationReceivedshowing where I don't install any react-native-fcm.

here are the warning messages I received.

Sending `FCMNotificationReceived` with no listeners registered.
Sending `FCMDirectChannelConnectionChanged` with no listeners registered.
Sending `FCMTokenRefreshed` with no listeners registered.

when I push a message on Firebase Cloud messaging the FCMNotificationReceived error always appear on the debug mode and this code is not showing when I use console.log()

firebase.messaging().onMessage((message) => {
console.log(message);
});

can some share their knowledge if they already come across this issue.

thanks,

Environment

  1. Application Target Platform: iOS
  1. Development Operating System: macOS
  1. Build Tools: Xcode 9.3
  1. React Native version: RN 0.53.3
  1. RNFirebase Version: 4.1.0
  1. Firebase Module:

Most helpful comment

give me solution

All 5 comments

sorry found the error, it seems in my library FCM is still added on that part so it conflicts with RNFirebase.

thanks,

give me solution

Any update?

The error comes from react-native-fcm. If you've migrated to react-native-firebase from react-native-fcm, you need to remove all traces of that library from your project. Run react-native unlink react-native-fcm and npm remove react-native-fcm, then go through the react-native-fcm installation instructions and check that there's nothing left of the installation.

i have this issue too while i installed only react-native-fcm
i have no idea whether this issue from APNs or firebase pods
please share if somebody got any solution

Was this page helpful?
0 / 5 - 0 ratings