Questions tagged [firebase-cloud-messaging]

Firebase Cloud Messaging (FCM) is the new version of GCM. It inherits the reliable and scalable GCM infrastructure, plus new features. It is a cross-platform solution that let user reliably deliver and receive messages and notifications at no cost. It supports Android, iOS, Desktop Web Browsers, the Mobile web with JavaScript or WebPush and Internet-of-Things (IoT) devices.

About Firebase Cloud Messaging

Firebase Cloud Messaging is a component of the Firebase suite of tools for cross-platform application development.

  • Send unlimited upstream/downstream messages
  • Send messages to individual devices or a user segment
  • Handle all aspects of queueing and delivery
  • Optimize for battery efficiency

Using FCM, you can notify a client app that new email or other data is available to sync. You can send notifications to drive user reengagement and retention. For use cases such as instant messaging, a message can transfer a payload of up to 4KB to a client app.

How does it work?

An FCM implementation includes an app server in your environment that interacts with FCM via HTTP or XMPP protocol, and a client app. Additionally, FCM includes the Notifications console, which you can use to send notifications to client apps.

Firebase Notifications is built on Firebase Cloud Messaging and shares the same FCM SDK for client development. For testing or for sending marketing or engagement messages with powerful built-in targeting and analytics, you can use Notifications. For deployments with more complex messaging requirements, FCM is the right choice.

Related tags

12555 questions
4
votes
2 answers

Certain types of FCM data messages are not delivered to iOS device

I have a Cloud Functions environment that sends data and notification messages. At the moment, I am testing FCM messages on an iPhone SE (2016) and an iPhone 7 Plus - and the behaviour is very inconsistent between the 2 devices and I'd like to know…
Zorgan
  • 8,227
  • 23
  • 106
  • 207
4
votes
2 answers

startActivity not working inside onMessageReceived in fcm

I know there are many thread discussing this problem. I have tried almost all of solutions on that threads, but unfortunately that didn't work in my case. Basically, what I want to do is, I want to start an activity immediately after…
4
votes
0 answers

FCM : Cant get a pop up notification when app is running in background

I am using "Firebase Cloud Messaging" for receiving notifications and "flutter_local_notifications" plugin to configure and display them on my device. So my current scenario is when my app is running (in foreground), I am receiving proper…
Sarvesh Dalvi
  • 2,260
  • 2
  • 14
  • 30
4
votes
1 answer

FCM Cloud Messaging Report only shows "Sends"

We have implemented WebPush Notification with FCM for WEB. The system works fine. But when you want to see the statistics in the Firebase console (Cloud Messaging -> Report) only the number of "Sends" is modified. "Open count" records changes but…
4
votes
1 answer

Angular Push Notification with FCM

I need to implement push notifications in my project using FCM. I already implement the backend side and is working as expected. In the Angular side, I was able to implement both functionalities (background and foreground), my only problem at this…
4
votes
0 answers

Firebase Cloud Messaging APNs work only in development but not in distribution (Ad-hoc)

I'm having a problem with getting FCM APNs to work in distribution (Ad Hoc). Everything works perfectly in development, but when I tried to build an Ad Hoc for testing, it doesn't work. Here is what I did: 1- I implemented FCM into my app following…
4
votes
0 answers

Error : messaging/registration-token-not-registered

Would anyone be why i get this error when i try to send a notification to a Iphone Physical device ?? Error sending message { Error: Requested entity was not found. at FirebaseMessagingError.FirebaseError [as constructor]…
4
votes
0 answers

Is there a way to send push notifications using Firebase Admin API to all the users of android app?

As far as I have searched, you can only send notifs by either mentioning registration token of specific user, or group together users by subscribing them to a topic is there a way to send notifications to ALL THE USERS? I want to send the…
4
votes
1 answer

Flutter - When FCM push notification is clicked it's not launching app by default when app is the background

I currently using FCM to push notification to my flutter app. I try to launch the app when the user tap on a notification when the app is in background I got this terminal log when I try to tap on a notification E/FirebaseMessaging(24830):…
Purinut
  • 213
  • 4
  • 9
4
votes
0 answers

flutter: android manifest doesn't read kotlin file (Application.kt)

I'm trying to imply firebase cloud messaging to my app and I have tried to add both MainActvity.kt and Application.kt to my project and i didnt have kotlin installed on my project so i downloaded kotlin plugin then restarted my IDE then added the…
4
votes
1 answer

FCM Send message to multiple devices - which way to use?

There are several ways to send FCM messages and I don't understand which one to use even if I read the documents over and over. My use case: I have a user that is logged into the app on her iPhone, iPad and Android tablet. I want to make sure the…
Martin
  • 7,190
  • 9
  • 40
  • 48
4
votes
1 answer

Firebase Notification does NOT show up when app is open

In my testing, when send out Firebase Notification to Android, the notification does NOT show up when the user has the app open on the screen. Is this a default behavior? What should I do if I want the user to always receive notification no matter…
user1187968
  • 7,154
  • 16
  • 81
  • 152
4
votes
0 answers

Admin firebase Error - "Error: Requested entity was not found." when trying to send remote notification

I'm use node js server for sending remote notification with ""firebase-admin" package await admin .messaging() .send(dataMessage) .then(console.log("Data sent")) .catch((err) => console.log("Error" + err)); export const dataMessage =…
Barak
  • 654
  • 13
  • 30
4
votes
0 answers

Firebase Cloud Messaging Notification coming with empty data

I'm using the FCM Legacy HTTP API to send notifications to my React-Native Apps. When I send notifications with the "data" block filled out, I see all the data on my app. When I just populate the "notification" block however the message is empty…
John P
  • 1,540
  • 2
  • 22
  • 34
4
votes
2 answers

Flutter best way to store App Notifications?

Is there a way to store app notifications in a flutter app. Most of the time this app will be closed and the app notifications will not directly be hitting the app. I would like to store app notifications in a notifications received section. I…
Jeremiah S.
  • 411
  • 1
  • 4
  • 22