presentLocalNotification()
hi..can anyone tell me the solution for: I'm sending notification from C# code
{
to: "fcm_token",
notification: {
body: "your order is okay",
title: "Brg - Your order"
},
data:{
body: "your order is okay",
title: "Brg - Your order",
type="newentry"
},
}
I'm receiving notification on ios. I'm performing some actions in FCM.on(FCMEvent.Notification, notif => { method.
this.notificationListener = FCM.on(FCMEvent.Notification, async (notif) => { is only called when iOS app is in foreground not in background. When opening app clicked from notification this is never called.
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 ?