React Native Remote Notifications - react-native

So what are your experiences with sending remote notifications to RN app from FCM?
I did some research today, tried bunch of tutorials, but most of them didn't work.
So I wanna hear your opinion, which library are you using for this and what guide did you follow?
react-native-push-notification
react-native-fcm
react-native-firebase
react-native-onesignal

I did the connection a few days ago. It is not difficult but it requires a lot of configuration as notification is a native feature. I recommend you the following library that can help you:
React Native FCM
Also take in count the following things:
For ios you need get some certificates from apple.
This guide help with the setup and android part.
Remote notification can't reach iOS emulator since it can't fetch APNS token. Use real device.

I used to react-native-fcm, but now I use react-native-firebase, it is simple to use, just follow the documentation https://rnfirebase.io/docs/v5.x.x/getting-started
just follow the installation tab guide, cloud messaging tab guide, and notification tab, also you can find js code there. for IOS part, you need some extra work to add some certificate to your developer id and add some certificate to your firebase app.

Related

React-native : cannot receive message through FCM in IOS device

I have an issue with push notification in iOS devices using Firebase Cloud Messaging although it worked before. When I check apple dev account,I realized that some information has expired (like keys, profiles), I updated all of its and GoogleService-Info.plist but it still not work. Has anyone face with this issue? Please give me a solution. Thanks
link issue
Follow all the setup related to
Firebase App Integration from here
Firebase Cloud Messaging from here
For iOS, you need to set up Capabilities(Push Notifications & Background Modes)
You have setup all the things related iOS from here
Let me know still you have any queries. I hope it will help you!

Configure expo notifications for push notifications

I have 2 apps and I implemented expo push notification and everything was fine, but in the other one it asked me for the experienceid as a prop to Notifications.getExpoPushTokenAsync({
experienceId: "#name/slug,
});
and when trying to send a notification it gives me this error: InvalidCredentials: Unable to retrieve the FCM server key for the recipient's app. Make sure you have provided a server key as directed by the Expo FCM documentation.
I dont want to use FCM, i want to use expo push api.
Can you help me?
The Expo Push API uses FCM for Android, and while it's not necessary to configure it for Expo Go (this is done already for the Expo Go app), when you deploy your standalone app you will need to have it configured for FCM. More information here: https://docs.expo.dev/push-notifications/using-fcm/

How to display an image in a expo local notification

To give more clarity on the issue, i am developing this for IOS using expo notifications and expo sdk44 in my current project.
I have a couple of questions which i failed to find the answer to in their official documentation.
Is it possible to display images in a local notification while using expo's expo-notification library?
Is it possible to send "data-only" messages to Apple devices using expo push notification service?
Thanks in advance
expo-notifications has limited features and not currently support a custom image in the notification.
In case you need a native-like notification experience, you should opt for https://notifee.app/.

React-Native with Webhooks?

Is it possible to integrate React-Native with Webhooks?
Currently, I have a chatbot using React, Dialogflow and webhooks. I am intending to port over to React-Native. Hence, I like to find out if possible to use webhooks to integrate React-Native with Dialogflow?
When I google, I find tons of materials regarding React with Webhooks but none concerning React-Native with Webhooks.
In case not possible to integrate React-Native with Webhooks, how does one work around it then?
Thanks :)
Webhooks usually mean that a URL is called which triggers some kind of action on your server. In the client world you would use sockets.
So if you wish to communicate from server to client instead of vice versa you should either use sockets or native notifications, at least for iOS.
The app is only alive for a certain amount of time when not being used and then its terminated by OS on Apple products. Your socket will thus be shut down. Apple recommends to use native notifications to wake you app up in such cases.
This works espacially well for chat or voip apps.
There are a bunch of frameworks for handling push notifs here is a good tutorial: https://medium.com/ios-expert-series-or-interview-series/voip-push-notifications-using-ios-pushkit-5bc4a8f4d587

Push notification in adobe air (android and ios) with urbanairship/parse

I am looking for a solution or a guideline for one that will enable me to register to one of the big services that enable push notification.
I know that it will be easier in IOS http://www.adobe.com/devnet/air/articles/ios-push-notifications.html
I have problem with it android even though I successfully send a push notification to android. but without registration like explained Heading here.
http://afterisk.wordpress.com/2012/09/22/the-only-free-and-fully-functional-android-gcm-native-extension-for-adobe-air/
Could someone direct me to a solution
Thanks