Questions tagged [react-native-fcm]

94 questions
16
votes
7 answers

ld: library not found for -lFirebaseCore clang: error: linker command failed with exit code 1 (use -v to see invocation)

I using react-native-fcm for remote push notification but it gives this error: ld: library not found for -lFirebaseCore clang: error: linker command failed with exit code 1 (use -v to see invocation) Pod: # Uncomment the next line to define a global…
Amir Hossein
  • 916
  • 2
  • 13
  • 38
9
votes
3 answers

Get FCM token in React-Native

In my React-Native application, I have to use firebase notifications. So I created this library. Have I done this in the correct way? How can I test this to check if this works properly? What I want is to return the FCM token here. /** Firebase…
Shashika Virajh
  • 8,497
  • 17
  • 59
  • 103
7
votes
2 answers

Correct way of navigation upon receiving push notification when app is in foreground or closed

This is a general question to all who are using react navigation, following is my navigation structure export const createRootNavigator = (signedIn = false) => { return StackNavigator({ Login: screen: Login, Welcome: screen: Welcome, …
7
votes
1 answer

React-native FCM: Can't access notification data when the app is in background or killed

Im am trying to make work react-native-fcm, with firebase cloud messaging and a react-native app. I am focusing mainly in Android react-native@0.48.0 react-native-fcm@10.0.2 OS: Android - Emulator - 7.0.2 When my app is in foreground, its working…
5
votes
0 answers

Showing fcm notification message in JSON format when app is killed or in background in react-native-fcm

I am using react-native-fcm library for android device. I am getting notification properly when my application is running, but when my application is in the background or killed then I am getting notification data in JSON format similarly in an…
Sandeep Mishra
  • 650
  • 2
  • 9
  • 20
4
votes
1 answer

How to send push notification to react native android app using FCM

I am trying to build react native(0.59.9) android app with firebase push notification(FCM - ^16.2.4). I used this Doc https://github.com/evollu/react-native-fcm! . After add google-service.json file and gradle dependencies , it gave errors. Task…
Dulaj Madusanka
  • 308
  • 2
  • 17
4
votes
1 answer

Pinpoint/FCM returning Unregistered or expired token

I'm using Pinpoint to push notifications through FCM and I'm receiving an error back from AWS: { "ApplicationId": "xxx", "RequestId": "yyy", "EndpointResult": { "5551212": { "DeliveryStatus": "PERMANENT_FAILURE", …
4
votes
0 answers

Data coming from firebase notification is coming Undefined?

I am using react-native firebase for push notification and they are working fine. The notifications are coming right. The problem I'm facing is that when I receive notification, the "title" and "body" of the notification payload is coming to be…
4
votes
1 answer

React-Native Android FCM: Didn't get a token

I am using react-native-fcm into my React-Native application. I am using below method to get device token for the push. FCM.getFCMToken().then((token) => { alert('FCM Token: ' + token); console.log(token); }); The issue is, I am…
4
votes
1 answer

react-native-fcm android notification not working

I am using react-native-fcm first time and according to documentation i have done all the linking stuff and using cloud messaging tab in firebase console for sending notification. After sending notification status comes as complete and for IOS its…
4
votes
0 answers

React-Native Android app working in debug but not release

I am working with a React-Native Android application that is using react-native-fcm. We are getting notifications generated by our app server that notify a user that they are receiving a shipment of product. When we test this feature in debug mode,…
3
votes
1 answer

Send FCM data message using Firebase Console

Firebase cloud messaging service working very well compare to other push notification services and also very useful dashboard to see all the collection of details. My requirement need to send image using Firebase Console (data payload/ rich…
3
votes
0 answers

React-native make an application open webview with url push from notification firebase use react-native-fcm

I want make an application use react-native-fcm https://github.com/evollu/react-native-fcm Step 1: Push notification from google firebase with message is an url Step 2: Click on the notification -> Open URL by Webview Please help me!
2
votes
1 answer

iOS remote notification not working react-native-firebase [v6]

I am using RNFirebase and when developed from scratch using [v6] When in foreground I am receiving notification but when I kill the app or the application is in background nothing is received. My Package.json include "dependencies": { …
2
votes
2 answers

Push notifications not getting grouped (like Whatsapp)

I am using FCM Cloud Messaging framework to send and receive push messages for both Android and ios. To send messages from my server I call FCM v1 API. I use FCM SDK app in my native app (react native based) to generate device registration token,…
NKM
  • 602
  • 1
  • 6
  • 18
1
2 3 4 5 6 7