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
1 answer

How does WhatsApp bypass APNS restriction to display multiple push messages received while device was offline?

While working with APNS, I was able to have push notifications work flawlessly while device is online. For any APNS push I send while device is offline, only the last one is received once the device is back online. This seems to be coherent with…
4
votes
1 answer

Flutter Show Notification when app is open with Firebase Messaging

the app receives all the notification that I have sent in the background or closed mode, but I also want to show the notification when the app is opened while user playing with the app. onMessage: (Map message) async { …
Atiq Ur Rehman
  • 1,065
  • 1
  • 15
  • 34
4
votes
2 answers

FCM is not working when the app is killed

I am using fcm to puch notification in my app but when the app is closed and cleared from recent apps then notification is not coming.I ma using FCM api to send notification to a particular topic. Note:- When the app is in background the…
4
votes
1 answer

How to allow floating notification and lock screen notification programmatic in flutter

To implement push notification, Firebase Cloud Messaging is used.The notification is received successfully in the device but it has to be a pop-up(Floating notification) and it should also be displayed in lock screen. Notification is composed using…
4
votes
0 answers

Group Android notifications in Firebase Cloud Messaging using Cloud Functions

I have a Cloud Function that send notifications to iOS/Android devices through Firebase Cloud Messaging. We can group notifications for iOS devices by specifying thread-id in the FCM notification payload. How could I do the same for Android…
4
votes
1 answer

FCM for Flutter IOS notification not show when app is in background or terminated

I am implemented Firebase Cloud Messaging for Flutter using this. all the things are working fine in Android, but iOS push notification only show when app is in foreground. Please help me for show notification app in background and terminated. Those…
4
votes
1 answer

Ionic - HTTP POST Request not working in iOS, but working in Android and Web

I am trying send a push notification via post request in Ionic using HttpClient. It's working in Android and Web, but in iOS show this error: {"headers":{"normalizedNames":{},"lazyUpdate":null,"headers":{}},"status":0,"statusText":"Unknown…
4
votes
2 answers

Flutter Firebase Notification issue Android

I am trying to implement firebase_messaging in my flutter application. On Android Integration when i write native Application level code i get errors. import io.flutter.app.FlutterApplication; import io.flutter.plugin.common.PluginRegistry; import…
Muhammad Faizan
  • 353
  • 4
  • 15
4
votes
2 answers

Firebase Messaging notification for specific device in flutter

I am working on a flutter application whereby a lot of server requests were implemented on our custom server including login/signup. However, we decided to use Firebase Cloud Messaging for notifications. For example, included in the application is a…
4
votes
0 answers

How to count open push-notifications within' Google BigQuery

I need to develop an admin panel which can send and monitor push notifications. The data I gonna monitor for each message includes: amount of unique devices to send notification (with or no topic) amount of unique devices with recieved notification…
4
votes
1 answer

Firebase google-services.json change no longer receiving push notifications

Originally, I had a working app and receiving push notifications successfully. I reorganized our project in firebase and we've deleted and re-added the app to the console (in the same project). I've redownloaded the google-services.json file and…
kevskree
  • 4,442
  • 3
  • 24
  • 32
4
votes
4 answers

How to delete Firebase Cloud Messaging Token when user Log-Out of the React Native application?

I use React Native FCM for messaging, and when the user logs out the application I want to delete the FCM token so that the user doesn't get Notified again. Below is my code for logout. _signOutAsync = async () => { this.logoutEvent() …
zidniryi
  • 1,212
  • 3
  • 15
  • 36
4
votes
1 answer

Generate Flutter Local Notification when background FCM Triggers

Basically I am trying to make a notification when FCM onBackgroundMessage Triggers. While doing this I am getting a NullPointerException at the .show(..) method of FlutterLocalNotification Plugin. Here is my Code: FirebaseMessaging…
Jagraj Singh
  • 4,031
  • 4
  • 15
  • 33
4
votes
5 answers

Unhandled Promise rejection: this._next is not a function : Zone in @angular/fire/messaging

When I am receiving firebase push notifications in the foreground, by using @angular/fire/messaging. The method is: this.angularFireMessaging.messages.subscribe( (payload) => { console.log("new message received. ", payload); …
4
votes
1 answer

flutter get RuntimeException after add firebase messaging

I config my project base on [firebase_messaging 6.0.9]https://pub.dev/packages/firebase_messaging after replace .Activity by .Application in manifest i get this error :
hadi
  • 367
  • 5
  • 18