Questions tagged [react-native-fcm]

94 questions
0
votes
0 answers

Push Notifications not working When app is in background

The issue I am facing is related to sending push notifications using the Expo Push Notification API. I am sending HTTP POST requests to the Expo Push Notification V2 API to send notifications to Expo push token, which is obtained by registering the…
0
votes
0 answers

React Native + FCM Topic Notifications

I'm facing a really random error that I cannot debug, for the life of me. I've tried everything, so I'm really hoping someone here can help. I've created a React native app for iOS and Android, and I'm using FCM for data messages and…
0
votes
0 answers

Send push notification to React Native App running on IOS simulator using FCM google API

Hello everyone I hope you're all doing great. I have created a React native application and implemented react native firebase. I have a react.js application that sends notifications to devices(all platforms) using their tokens. Everything works well…
0
votes
1 answer

Getting issue in generating Firebase token in React JS application

importScripts("https://www.gstatic.com/firebasejs/9.8.3/firebase-app-compat.js"); importScripts("https://www.gstatic.com/firebasejs/9.8.3/firebase-messaging-compat.js"); // Initialize the Firebase app in the service worker by passing the…
0
votes
1 answer

Can I use only FCM firebase without using Firebase database?

I am working on React Native application with MongoDB. I need a service to send push notifications to the user whenever a certain field is updated. I don't want to use the Firebase Realtime Database or Firestore, I only need FCM service. or is there…
0
votes
5 answers

React-native with Firebase FCM not working

I have done the following changes: How is send notifications, using firebase-admin and getting successful result: admin.messaging().sendToDevice( "token as string", { notification: { title: 'title here', …
0
votes
0 answers

If a user is not opening the Android application for few days, then why it stops receiving push/remote notifications?

I am working on the android application, which is useful to send push/alerts to its users for the emergency situations like severe weather, missing persons, colds, floods, earthquakes, etc warnings. Recently, I have started receiving the complaint…
0
votes
1 answer

Can a server configured with one Firebase project send notifications to an individual user of an app in a different project?

I am using Firebase with React Native. There are two different projects with one Android app under each project. My backend server is configured to receive/store the FCM token of every individual app user. Right now, the same backend server caters…
0
votes
1 answer

React Native, how to execute a component's method from App.js when using stack navigation

I finished a React Native course, and I'm trying to make a chat app to practice. Summarize the problem: I have 2 screens ,ContactList.js and ChatRoom.js I have a Navigation stack with these two screens Navigation.js The Navigation component is…
0
votes
2 answers

Implement unstoppable background service in react native

I am trying to run a unstoppable background service in react native which will continuously listen for messages via Socket.io from server. For this I found several solutions with several problems Use FCM The problem with method is that first I…
0
votes
1 answer

How to Take Action / Move Screen When FCM Notification is Opened?

I am currently using FCM React Native Firebase, where I want to move the screen or take action when I open the fcm notification, like the image below :
0
votes
0 answers

Firebase notification stopped after using it for a while (react-native-fcm)

Thank you in advance. After I fully implemented react-native-fcm, everything was working perfectly for the notification. But after a while the notification stopped coming in after some weeks. The device (android phone) stopped receiving…
0
votes
1 answer

How we can get payload data at the time of click tray when app is closed in Android push notification?

I m using React Native Flurry SDK (react-native-flurry-sdk) Flurry push React-native Flurry push Android Native It is working fine // Optionally add a listener to receive messaging events, and handle the notification. // Please call required…
Angu
  • 862
  • 2
  • 13
  • 32
0
votes
1 answer

Remove FCM notification

I use FCM in my client-server application, and I need to remove the sent notification from the device if it is no longer relevant, for example, if a person has read it already, it needs to be done from the server, I can do it, I tried to use tag but…
0
votes
1 answer

problem with getExpoPushTokenAsync with error "Couldn't get GCM token for device"

I have searched a lot about this error But I'm keep getting "Couldn't get GCM token for device" 1- I've tried expo start and then run the project 2- I've logged in to my expo account and I can see my name in expo dev tools but no difference …