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
3 answers

Firebase notifications not shown on foreground

I'm trying to manage notifications, but I am not able to do nothing with them when app is in foreground. When app is minimified or completly closed, the notification is correctly shown, but if app is in foreground it is not seen. I have test…
msolla
  • 306
  • 1
  • 3
  • 16
4
votes
1 answer

Firebase Cloud Messaging click_action not working

I am sending notification from Firebase console to web application (Firebase). When I am sending a POST request from POSTMAN, I am able to navigate to the URL when I click on the notification. But when I am sending it from Firebase console I am not…
4
votes
2 answers

Clicking on Notification button not opening app in flutter

I have integrated firebase-messaging plugin for notification but on clicking notification app is not opening if it is in the background or killed.I want to open app when i click on the natification. Below is my code for same void…
kunaljosh369
  • 195
  • 1
  • 3
  • 12
4
votes
3 answers

Flutter Firebase Cloud Messaging - Notification when app in background

I am currently using FCM for push notifications. When my app is open, I receive the notification, however when the app is closed or in the background - I do not receive anything until I reopen the app. On XCode, I have background fetch enabled and…
Bollie
  • 487
  • 2
  • 8
  • 17
4
votes
0 answers

FirebaseInstanceId: Error while delivering the message: ServiceIntent not found into MI devices

This error we found when the application is in the background for a long time. This issue I found into Xaiomi devices. I tested into Samsung it's running perfectly but in Xaiomi, it always throwing the same error.
Krunal Shah
  • 1,438
  • 1
  • 17
  • 29
4
votes
1 answer

Firestore Social Media Model Structure

I have a posts collection in which my application stores all the posts of a user, with the following data structure: + uid (the user id of the creator) + text-content : String + tagged-users: [String] + assigned-media: [{"downloadUrl": String,…
4
votes
4 answers

Service to keep alive FirebaseMessagingService even if app is not running and show notifications with Data payload

I am working in a application that uses FCM notifications, when app is running (foreground or background) the notification receives but when i clear the app from my recent apps i do not receive any notification i am using FirebaseMessagingService.…
4
votes
1 answer

Firebase cloud messaging fcm_options.link url not opening on click

I'm sending fcm message to the web application, I'm able to receive the message in background but when I click on alert, it does not open the URL in browser, everything is working fine its just the link that is not working. Here is the message I'm…
4
votes
0 answers

error Failed to get dependency config while installing messaging module of react-native-firebase

I am trying to add the notification capabilities to my react-native app. Seems like react-native-firebase is the preferred way to go. But I don't want to install the complete module just for messaging. According to this:…
honor
  • 7,378
  • 10
  • 48
  • 76
4
votes
1 answer

Firebase messaging importScripts is not defined

I write a WEB application on the platform Firebase I have a file "firebase-messaging-sw.js", and when I access the file from home.html page, I get an error: importScripts is not File "firebase-messaging-sw.js" is at the root…
Yury Matatov
  • 805
  • 3
  • 11
  • 23
4
votes
0 answers

Firebase Cloud Messaging: Internal error encountered

I'm trying to send push notifications via a Firebase Cloud Function, but getting an internal error. Error: Internal error encountered. at FirebaseMessagingError.FirebaseError [as constructor]…
4
votes
0 answers

An SSL certificate error occurred when fetching the script. (messaging/failed-serviceworker-registration)

I am testing my web app on localhost for firebase cloud messaging. I am running it on a virtual host and I enabled SSL for it, I can see https but it is crossed in red. I searched and tried two methods but none of them are working .\chrome.exe…
4
votes
1 answer

How to fix firebase notification icon in background it is not showing on background

I have added firebase notification in my app . When app is running i get notification icon but when my app is in background or closed than notification icon doesn't show . Eiher it is small icon or large . i have done many solution from…
4
votes
0 answers

Unable to load Images for the Firebase Notification(Data Messages) in background during Battery-Saver Mode Android

I am using FCM Data Messages for pushing Notifications to my Android App. So basically, my data payload will have the information like Notification Title, Message and Image URL. The Image URL will be different for each and every notification. After…
4
votes
0 answers

Sometimes clicking on notification sent from firebase console does not open the app

I am using Firebase cloud messaging for push notification and everything works fine. Recently I came across an issue where clicking on the notification sent from Firebase console did not open the app. I was able to reproduce this issue once in One…
Annah
  • 306
  • 3
  • 11