Wake up react native app to obtain fcm token - firebase

We recently integrated firebase to out react native apps on android and ios for push notifications using react-native-firebase. Since we do not currently have the fcm tokens and we can only obtain them once a user opens the app once again. Is there a way to send notifications to all the users or to schedule a local notification using react-native-firebase without the user opening the app so that we can obtain the fcm token for the device.

Related

React Native Firebase Notifications Don't Show While the User is Using the App

I'm using Firebase to send notifications to my React Native frontend. Notifications come through fine when the app is closed, but user's don't receive the notification while they are inside the app. How can I force the notification through every time?
the notifications are received but not showing when the app is open (foreground) you will have to use this or similar solution to show the notification on the screen in this case.
check this link
I have used it on android and iOS with no problems.
You can't "force" them but you can handle them

Push Notification on Web view app using Xamarin and Firebase

How can I send push notification to a web view application using Xamarin and Firebase Cloud Messaging?
To add push notification ability to your app ,you have to implement it in each platform project:
For Android, please read the document, there are detailed steps about how to implement remote Notifications with Firebase Cloud Messaging.
For iOS, You can use Xamarin.Firebase.iOS.CloudMessaging to send iOS push notification by FCM.
There are also steps here: Firebase Cloud Messaging on iOS

Ios push notification in ionic application

Push notification not receiving to my IOS device which is working fine for android. I am using Firebase to send notification for android and IOS, I have configured the google-service-info.plist file to my Firebase account and enabled push notification in Xcode before taking the build. But I am not able to receive the notification, is there any additional configuration that I required to change for IOS? Why am not getting push notification which works fine by default for android?
I am able to get device token of IOS that am using this token to trigger notification.
if you are still having this problem with ios push notification. This is how i solved it.
Login into your apple developer account and create an APNs Authentication key (.p8 file).
Then upload it to your firebase console in the cloud messaging tab.

Possible to isolate upgrade from GCM/APNS to FCM on the App Server only without updating mobile apps?

My team has 3 iOS apps and and 1 Android app that all receive push-notifications from the same App Server. The Android app is currently using GCM and the iOS apps are currently using APNS without any middleman. We've like to move to FCM by updating the App Server.
Each of our customers has their own instance of the App Server. Since each customer will upgrade their App Server on their own schedule, this means the mobile apps need to be backwards-compatible. In other words, the mobile apps need to be able to receive push-notifications from either the old App Server using GCM/APNS or the new App Server using FCM.
Is it possible to isolate the upgrade from APNS to FCM on the back-end only so that we don't have to upgrade the mobile apps?
In order to answer this question, we think we need to confirm the following:
That the Android apps are already backwards compatible so that they can already receive both GCM or FCM notifications without any SDK upgrade.
That the iOS apps can receive APNS notifications from either APNS or APNS-via-FCM.
That we don't have to integrate the FCM SDK into the iOS apps.
Update: I reached out to Firebase support about this and they confirmed that we can upgrade to FCM for both iOS and Android by doing back-end changes only. FCM is backwards compatible with GCM so the Android apps and their notification tokens will continue to work. As for iOS, when we receive the notification token on our back-end, then we simply convert to FCM token by calling "batchImport" API and using that FCM token instead to send notifications to our iOS devices. We've developed and tested these changes and they are working great in a production environment.

react native firebase fcm cloud message app is not open when user click push notification

I am developing with react native and evollu firebase fcm cloud messaging.
when user receive push notification and click to it, it won't be do anything, app is not opened.
How can I fix this?

Resources