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 FCMNotificationReceived
showing 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,
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
Most helpful comment
give me solution