Hello everyone,
I am facing a terrible issue and I can't find its solution for several hours ... :(
I am trying to integrate react-native-fcm with noncocoapod approach in existing react native project with already configured react-native-fbsdk. I followed all steps on the README file both at the github repo and the Firebase SDK dir but with no success.
In my Xcode project I have 'Frameworks " dir and I have putted all frameworks from Firebase SDK - Analytics & Messaging there and also Firebase.h & module.modulmap files. When I build the project I face this error:
In file included from /Users/petarivanov/Projects/appointments/appointments/node_modules/react-native-fcm/ios/RNFIRMessaging.m:1:
/Users/petarivanov/Projects/appointments/appointments/node_modules/react-native-fcm/ios/RNFIRMessaging.h:4:9: fatal error: module 'FirebaseCore' not found
@import FirebaseCore;
I've also tried several variations in organizing imports, files and directories but no one helped me to solve the problem.
I will be glad if anyone could help me with this annoying problem.
Thanks!!!
@evollu Thanks for reply!
So I need to check if token has changed - send it to my server, yes ?
But my users can open app very rarely, for example some users open it once at month. What I should do in this cases ?
And did you know in what exactly cases FCM token has changes on the devices ?
i have two FCMEvent.Notification
in one i am presenting the notification and in one i am doing some kind of data manipulation both listener is in different component.
Problem is in iOS both listener is calling twice where as in android its working as expected
Thanks
RNFIRMessaging tried to override FIRMessaging
when i add packages.add(new FIRMessagingPackage());