Questions tagged [react-native-fcm]
94 questions
1
vote
1 answer
React Native - Failed to execute aapt
I have just configured React Native FCM, when I try to start the packager:
npm install && gradlew clean
I get the following error:
enter code…

Ankush Rana
- 68
- 5
1
vote
1 answer
React native FCM IOS notification not showing in foreground
Anyone knows how to display iOS notification in foreground(when app is open). I'm using react-native-fcm. Everything works fine the android notification also shows in foreground but not in iOS.
I've followed everything in the documentation. The…

devedv
- 562
- 2
- 15
- 45
1
vote
0 answers
Failed for task ':app:transformClassesWithMultidexlistForDebug'
Issue
Error when I try to config react-native-fcm in my project.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task…

Thai Ha
- 1,331
- 14
- 21
1
vote
1 answer
react-native-fcm application does not show notification of data type when it is killed
I use Firebase Cloud Messaging (FCM) HTTP Legacy API protocol to send push notifications in JSON to android mobile devices. For the client side I use react-native-fcm library.
The aim is to send the notification to the particular devices when the…

user3374848
- 31
- 5
1
vote
1 answer
React- Native Push Notification using FCM
I need to send a token for users after registration is complete to the firebase and with that i need to deliver push notifications to users.
I was able to find proper tutorials for Android FCM Push Notification guides, but didnt find any working…

FortuneCookie
- 1,756
- 3
- 25
- 41
1
vote
1 answer
Integration of Firebase Cloud Messaging(FCM) with React Native (iOS and Android)
I am new to React-native and trying to implement push notifications with Google's Firebase cloud messaging library (iOS and Android). I have gone through many articles but none of them explain things as far as a beginner is concerned. Can anyone…

Pooja Mule
- 431
- 3
- 11
1
vote
0 answers
react-native push notification is not working in background
i am using react-native-fcm to receive the push notification.it is properly working when app notification screen is in foreground state only(not working on other screens).But i want receive a notification when app is killed or in the background or…

Khushdeep Kaur
- 43
- 1
- 9
1
vote
1 answer
How to reload a screen when I receive a remote notification?
I am using RN 0.54 with react-navigation having 3 tabs - tanks, alerts, and settings. I want to navigate and reload the alerts tab whenever I receive a notification for alerts.
I am able to navigate to the alerts screen when I am in either tanks or…

HungrySoul
- 1,151
- 2
- 17
- 31
1
vote
0 answers
Android - Build failed with an exception while running react-native run-android
I am trying to setup remote push notifications in react-native and I am using the react-native-fcm package for fulling that.I followed the guide in setting up the required things from the github page of the package .I keep running in to the…

datainsights
- 51
- 1
- 6
1
vote
1 answer
navigating user on notification click app in background/foreground
I'm using REACT-NATIVE-FCM.
My app has drawer navigator inside stack navigator in App.js.
On notification click from notification tray I want user to directly go to certain Screen.
Registering FCM events in Home page only work if app is closed,…

devedv
- 562
- 2
- 15
- 45
1
vote
0 answers
React Native Android app crash when receiving push notification on foreground
App is working perfectly fine when receiving push notifications on background, but it crashes when in foregrond. I am using RN 0.49 and react-native-fcm 11.3.1 package.
My code looks as below:
FCM.on(FCMEvent.Notification, async (notif) => {
…

Mizlul
- 1
- 7
- 41
- 100
1
vote
1 answer
react-native-fcm How to send fcm_token to rails api server
I want to send fcm_token(device_token) to my rails api server.
I get fcm_token by FCM.getFCMToken();
However,
const device_token = FCM.getFCMToken(); don't work.
I need variables of fcm_token like
const device_token = "xxxx"
.
Do you have…

sonicmario
- 601
- 8
- 22
1
vote
0 answers
(react-native-fcm) How to local notification for indivisual devices with device_token?
I'm trying to integrate local notifications from react-native-fcm into my application.
My app is sharing diaries app.
and every diary have "nice" button.
What i want to do is that user A press user B's "nice" button of userB's diary. then push…

sonicmario
- 601
- 8
- 22
1
vote
0 answers
react-native-fcm ios not getting notification data in background
I'm sending notification from C# code
{
to: "fcm_token",
notification: {
body: "body test",
title: "title test"
},
data:{
body: "body test",
title: "title test",
…

devedv
- 562
- 2
- 15
- 45
1
vote
1 answer
Possible unhandled promise rejection id: Invalid FCM Event subscription
Index.js
import FCM from "react-native-fcm";
class Register extends Component {
constructor(props) {
super(props);
componentDidMount () {
// this method generate fcm token.
FCM.requestPermissions();
FCM.getFCMToken().then(token…

Linu Sherin
- 1,712
- 7
- 38
- 88