Can I use CRNA or Expo with Firebase Cloud Messaging? If so, how? The Firebase JS lib ? Looks like I can but how to make push notification work?
or ExpoKit with Firebase Android/IOS lib?
Thanks!
If you need to use the full Firebase SDK, with Firebase Analytics,
Firebase (rather than Expo) Push Notifications, Firebase Crash
Reporting, and Firebase Links, you will need to eject for the
foreseeable future
https://expo.canny.io/feature-requests/p/full-native-firebase-integration
here is updated document from expo showing they support FCM with Android: https://docs.expo.io/versions/v26.0.0/guides/using-fcm
Related
Trying to add Push Notifications to my Xamarin.Forms app, and cannot find any working example to implement Firebase Cloud Messaging.
I mean, not a single working example of all the examples/tutorials.
Can you point me to one, please?
You can first check document Firebase Cloud Messaging. This article provides an overview of how FCM works, and it explains how to configure Google Services so that your app can use FCM.
The implementation process in xamarin android is similar to that on xamarin forms.
You can also find more tutorials in your browser.
For example:
Implement Push Notifications with Xamarin.Forms (Android) and FCM
and
Implement Push Notifications with Xamarin.Forms (iOS) and FCM .
https://firebase.google.com/docs/ab-testing/abtest-with-console
This page shows only Native code. I can't find React Native / javascript code.
Looks like you could use React Native Firebase. Documentation states you can use A/B Testing with Remote Config, Cloud Messaging, or In-App Messaging. https://rnfirebase.io/remote-config/usage.
To get the Firebase Token, you can use the messaging package - https://rnfirebase.io/reference/messaging#getToken
i tired to make push notification with the normal expo notification and i could get the token but link it with firebase and couldn't send notification from backend,
then i did expo eject so i can use react-native-firebase and i did all steps in the documentation here: https://v5.rnfirebase.io/docs/v5.x.x and all cloud messaging and notification steps from the right sidebar but i got that error in the picture below
Note: I use wordpress as a backend to send push notification
Why do you need to eject if you are using Expo tokens ?
Maybe you can try to upgrade to Expo SDK 37 and use FirebaseCore : https://docs.expo.io/versions/latest/sdk/firebase-core/
First, Expo push notifications is much better than current V6 firebase push notifications, as it will not provide notification data to app, to make it happen, you have to do a lot of circus. If that was the only reason you are ejecting, don't do that.
Second, That error is saying you did not configure firebase properly, follow the instructions properly from the react native firebase doc.
I want to take a decision to use Firebase Admin SDK or Firebase Admin REST API.
I need to use it in the communication from Angular/Node.js to Firebase database.
Please let me know if you can share the comparison between this two.
Thanks.
For communicating from an Angular web app with the Firebase Database, use the Firebase Web SDK.
For communicating from a server-side Node.js process with the Firebase Database, use the Firebase Admin SDK.
For communicating with the Firebase Database from a platform for which there is no SDK, use the Firebase REST API.
Well, I'm new to React Native and Firebase and I have some questions about it. If somebody could help me I would appreciate it!
How react-native-fcm is related to Firebase Notifications Console? Is there a configuration on fcm when implementing that refers to that "notification database"?
On react-native-fcm documentation there's an example that uses:
FCM.subscribeToTopic('/topics/foo-bar');
Is that a reference to Firebase or something? Or it's just a silly question?
There's any way to send a notification when a child is added to Firebase Database?
Thank you!
react-native-fcm I think is a React library to use FCM. Firebase Notifications Console is a part of the Firebase Console where you're able to send push notifications towards your app without the use of your own App Server.
It's a function for sendig messages to Topics.
There is. The recently released Cloud Functions for Firebase sounds like what you're looking for. Specifically, Realtime Database Triggers. :)