Push notifications using ConnectyCube on React Native - react-native

I'm trying to using push notifications using ConnectyCube on React Native. Main problem is that if I send a notification from the admin panel of ConnectyCube (or from source code), the admin panel says that the notification has been successfully delivered, but nothing happens on the android emulator. Maybe someone can think that there are some bugs client-side in the implementation of my onMessageListener:
notificationListener = firebase.notifications().onNotification((notification) => {
console.log("Hi!")
});
Anyway, if I try to send a notification through the Firebase console, all works and I receive the notification. Can you help me?

It seems that you are using a wrong method: https://rnfirebase.io/docs/v5.x.x/notifications/introduction
The React Native Firebase Notifications Module deals with notification-only and notification + data FCM remote messages.
For data-only FCM messages please see the Messaging module.
ConnectyCube sends a data push messages.
Therefore, please try using Messaging module according to this guide:
https://rnfirebase.io/docs/v5.x.x/messaging/receiving-messages

Related

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 can I send firebase notifications using any other notification Library in react-native

I want to build custom style for the notifications I'm recieving from firebase in kill/background state.

Send push notifications using FCM and React Native (Expo) app

I am building a React Native(Expo) app that can send notifications to another app(not built with react-native). I have the FCM token(device-token) of the target app. How can I send notifications to that app using firebase cloud messaging(FCM)?
The target app is NOT built using react-native and has everything handled for the incoming notification. I just need to send the notification to the target app. Thank you in advance.

Can we get un-read notifications inside app from onesignal using react-native?

I have integrated OneSignal in ReactNative, now i am able to send and receive notifications. But after once notification is received into the mobile, then and there itself from the notification tray if user clears the notification without clicking it. Do we have any option to get all un-read notifications either with player_id and app_id
Looks like we can read the messages once we click on the notification which re-directs to the application.
I expect onesignal notifications should to able to retrieve the list of un-read notification using react-native sdk.
Can Someone help me with your ideas
Thanks.

How to Set Push notification using our own App server in react native?

I have created app that sends push notification when honework upload to the server. So please can somebody tell me how to send push notification in react native for both androud and ios?
You can use push notification packages like Firebase or OneSignal. they have defined API in their documentation and you can send push notification from your server to both android and ios devices easily.