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

Firebase handleIntent AbstractMethodError

When I receive a push notification on Android, I get the below error. I can't really seem to find any information about it. Can anyone help? I am really at a loss. FATAL EXCEPTION: pool-1-thread-1 Process: com.mycompany.myerror, PID: 22712…
user-44651
  • 3,924
  • 6
  • 41
  • 87
24
votes
6 answers

Firebase how to send Topic Notification

I am using below script to send notification to particular users:
DIGITAL JEDI
  • 1,672
  • 3
  • 24
  • 52
24
votes
2 answers

Firebase notification records/log API

I'm sending messages to several iOS Apps via FCM by using their HTTP protocol API, and I need a list of message records including the payload, sent time, and platform like what I could monitor in the Firebase Notification Console. It seems that…
bluenowhere
  • 2,683
  • 5
  • 24
  • 37
24
votes
1 answer

FCM - Difference between Downstream Message and Upstream Message

I have been studying materials related to Web push notification from FCM Messenger. While I came across downstream message and upstream message, apparently HTTP server only allows downstream message while XMPP server allows upstream message. I have…
24
votes
3 answers

How to send Firebase Cloud Messaging from a node server?

Is there any way to send notifications from FCM from a node.js server? I haven't found anything about it inside documentation.
Javier Manzano
  • 4,761
  • 16
  • 56
  • 86
23
votes
1 answer

Single APNs key on multiple applications in one organisation

My organisation maintains multiple applications and there's a confusion about how the APNs keys are supposed to be used. We are using firebase to send push notifications. So far we have two apple keys for two different applications. But cannot…
Tejpbit
  • 450
  • 1
  • 4
  • 13
23
votes
2 answers

Messaging: The notification permission was not granted and blocked instead

Firebase messaging error in https server. An error occurred while retrieving token. FirebaseError: Messaging: The notification permission was not granted and blocked instead. (messaging/permission-blocked). What should I do to get my token? On…
23
votes
3 answers

How to subscribe to a topic in flutter FCM?

I'm a new one in a flutter and in my app, I need to implement FCM with global or with a topic subscription. I successfully implemented the FCM with device token but need to send a notification to all device. how can we fix this?
Ajnas Askar
  • 925
  • 3
  • 8
  • 12
23
votes
5 answers

Failed to resolve: play-services-tasks

I have been tryong to add FCM to my android application for almost 48 hours now. I am keep on failing with these two errors on Android Studio. I have tried all the solutions in this post. Still I couldn't fix it. I want firebase cloud messaging to…
Fawzan
  • 4,738
  • 8
  • 41
  • 85
23
votes
3 answers

Not receiving FCM Push Notification for web on localhost

So I need to implement web push notifications in our web app, I have successfully setup the firebase cloud messaging in my app with the help of docs, I'm able to ask the user to allow permission for notifications and get the token id as well if he…
23
votes
6 answers

How to send FCM notification to app from web

I am developing chat app which is based on Firebase Database and Storage. Everything is working fine, but now I need implementation of FCM to receive notification on app when app is in background or foreground. I can't find a way to implement in PHP…
23
votes
3 answers

Why does firebase push_token return Blacklisted?

I am implementing Firebase messaging in my app. While I am testing the app sends the refreshed_token to my database, but in live production environment (Play store) it returns 'BLACKLISTED' as push_token. Does someone know why this happen? Or what I…
23
votes
13 answers

FirebaseError : We are unable to register the default service worker

I am using FCM web app notification for send notification to browser.My code below. var config = { apiKey: "", authDomain: ".firebaseapp.com", databaseURL: ".firebaseio.com", storageBucket:…
Sachin Solanki
  • 551
  • 2
  • 5
  • 17
23
votes
5 answers

Firebase Cloud Messaging AppDelegate Error

This is code in the Firebase Docs. if #available(iOS 10.0, *) { let authOptions : UNAuthorizationOptions = [.Alert, .Badge, .Sound] UNUserNotificationCenter.currentNotificationCenter().requestAuthorizationWithOptions( …
Junwoo Lee
  • 489
  • 1
  • 5
  • 15
23
votes
4 answers

GoogleApiAvailability missed with firebase-messaging:9.4.0

Declaring dependencies as compile 'com.google.firebase:firebase-messaging:9.4.0' I get "can not resolve symbol GoogleApiAvailability" message in the activity's import row import com.google.android.gms.common.GoogleApiAvailability; What is…
GPack
  • 2,494
  • 4
  • 19
  • 50