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

Why flutter version solving failed between firebase_core and firebase_messaging?

In pubspec.yaml, if I use the following dependencies of firebase_core and firebase_messaging : dependencies: firebase_core: ^0.7.0 firebase_messaging: ^7.0.3 I get the following error message : Because firebase_messaging >=7.0.3 <8.0.0-dev.7…
Adrien Arcuri
  • 1,962
  • 1
  • 16
  • 30
4
votes
1 answer

FCM getting registration token from not default FCM service

After update to newest Firebase there is not method for getting FCM registration token for selected fcmSenderId: FirebaseInstanceId .getInstance() .getToken(fcmSenderId, "FCM") Documentation says to use FirebaseMessaging instead…
Rambo's son
  • 138
  • 8
4
votes
3 answers

flutter FCM notification sound not working in release

I'm struggling last few days with this. I have flutter app that should receive notification from firebase (using FCM) and play custom sound. This works fine if I run app using flutter run or using flutter run --release, but if I build app using…
4
votes
3 answers

Flutter Firebase how to control notification not to show when the app is in foreground

I had a flutter app with a chat room feature. Firebase messaging is used to push remote notification. I want to hide the notification popup if the app is at foreground and it happens to be at the exact chat room where that coming notification…
Nero
  • 1,555
  • 1
  • 13
  • 28
4
votes
3 answers

FCM notifications not working in release app

I am trying to send FCM notifications (between users on sending messages, friend requests etc.) in release app which is not receiving but they are sending/receiving very well in debug apk, i have searched about this and found some solutions which…
4
votes
2 answers

setBackgroundMessageHandler is not called in terminated state

I use firebase/messaging in my react-native application to receive data-only notifications from firebase. When a message is received, i'll process the data, update my state and show a local notification with react-native-push-notification if the app…
4
votes
3 answers

Pushing Notification to all users in Firebase

I am trying to send push notifications using python to all users. However, I am aware that there is no way to do this using apps and you have to use topics (as far as I am aware). Is there a way that I can create a topic out of the app? Thanks Edit:…
Programmer12
  • 89
  • 1
  • 8
4
votes
1 answer

FCM notification received twice when in the background (service worker)

When im triggering a notification with my website in the background or close, i get two notifications. The first one has missing elements in the payload (icon for example) while the 2nd one has all the info. The code is running on this site:…
4
votes
1 answer

iOS background notification handler issue using @react-native-firebase/messaging

I am facing the issue when the app is in background or closed state. The notifications are shown in the notification center in all cases but the messaging().setBackgroundMessageHandler doesn't get called every time but only some times while checked…
4
votes
3 answers

Flutter, Firebase ios, cloud message doesn't show when app in background, only if app in foreground

I'm using flutter dependancies: firebase_messaging: ^7.0.3 flutter_local_notifications: ^3.0.1+6 I send firebase cloud message like this: { "to": "/topics/demo_ios" "notification" : { "body" : "Hi there now now", "title" : "Wow!", "sound":…
RJB
  • 1,704
  • 23
  • 50
4
votes
1 answer

Set the app's display name in a notification

I have a Flutter mobile app, using Google Cloud functions and Google Cloud Messaging. Currently testing with IntelliJ Android Emulator. Anytime a Cloud Function sends a push notification, the app name is the same, as the applicationId entry in…
ForestG
  • 17,538
  • 14
  • 52
  • 86
4
votes
3 answers

Android Firebase PERMISSION_DENIED reason API_KEY_SERVICE_BLOCKED

I ran into such a problem, when I tried to initialize firebase and get the FCM token, I get this error, who faced it? What could be the reason? A month ago, everything worked, after that nothing was changed in google-services.json file, firebase…
Azarnoy
  • 167
  • 1
  • 1
  • 14
4
votes
3 answers

Is there any way to implement push notifications with action buttons in flutter? Using firebase_messaging

I am looking for this functionality: I am looking for pointers. Could not find any tutorials or packages providing this kind of functionality. Thank you for your help!
4
votes
1 answer

Disable FCM firebase push notification sound

I'm using Node.js to send firebase push notification (FCM Firebase Cloud Messaging) and I cannot find a way to disable notification sound. Firebase official descriptions doesn't help much in that cause (Firebase Notification Sound) I have tried many…
4
votes
3 answers

Firebase notification Service not registered when sending message

I get these errors and app crashes when i send message to my device through firebase cloud messaging. W/ConnectionTracker: Exception thrown while unbinding java.lang.IllegalArgumentException: Service not registered:…
stefanosn
  • 3,264
  • 10
  • 53
  • 79