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

Swift Authenticate with Firebase on iOS using a Phone Number causing crash

I am following the Firebase docs: https://firebase.google.com/docs/auth/ios/phone-auth in an attempt to Authenticate with Firebase on iOS using a phone number and I am getting a fatal crash when it reaches here in my…
Learn2Code
  • 1,974
  • 5
  • 24
  • 46
4
votes
1 answer

Push notification - Firebase Control Messaging (FCM) - could not run the app (Default Activity not found)

I try to add FCM to my app in order to send push notifications. But I had a problem. I do everything according to Google tutorial add to the project build.gradle: buildscript { repositories { google() jcenter() } …
4
votes
0 answers

Firebase cloud function http trigger response on function with loop

I wrote some code to send a notification to all my user that register to an event, I use http trigger that will be called when event i starting, I can not send the notification to device group because the event maybe different even though the…
SIRS
  • 624
  • 6
  • 20
4
votes
0 answers

GCM XMPP Socket consistently getting EPIPE and disconnected when sending notifications

We have an xmpp connection server that connects sockets to GCM XMPP endpoints and starts sending notifications. One thing We've noticed is upon sending a semi-large notification (say to as little as a 1000 devices), the sockets keep getting suddenly…
4
votes
1 answer

FCM notification on-click always open in new tab (web-app Polymer)

I'm trying to implement Firebase Cloud Messaging in a web-app (with Polymer and a service-worker and using the custom-sw of the SDK). It is working great (on both desktop and android) but when the user click on the notification it is always opening…
4
votes
2 answers

ionic 3 with FCM push notifications not working on Android device

I have been trying to send push notifications from PostMan or from CURL PHP script, to my Android device, and I'm not receiving the message. If I send the notification from the Firebase Console, notifications it works, I received the push…
4
votes
2 answers

Firebase Cloud Trigger Function - How can I send notifications to ALL users?

I am totally new to Firebase Cloud Functions (2 days exposure). I am trying to send notifications to ALL users of my app when Firebase Database detects that new data has been added. Here is what I have so far: exports.sendNotification =…
4
votes
3 answers

onMessageReceived in android O not called when app in background

I am sending data payload notifications from my server. here is example: url= "https://fcm.googleapis.com/fcm/send" { "to" : "userToken", "data" : { //some json here } } in such way i am successfully sending messages to users, even if app…
4
votes
0 answers

Firebase InstanceID: does it persist after app uninstall/reinstall?

In case of uninstalling the app and reinstalling after a few weeks, does the Firebase InstanceID stay the same or a new one gets generated?
4
votes
0 answers

Replacement for FCM diagnostic

In order to troubleshoot notifications delivery we used FCM diagnostics as recommended at: https://support.google.com/googleplay/android-developer/answer/2663268?hl=en But now I see: FCM diagnostics page to be removed From Nov 20 2017, the FCM…
gavenkoa
  • 45,285
  • 19
  • 251
  • 303
4
votes
3 answers

start activity automatically after receiving fcm notification?

I want to start a specific activity automatically after receiving fcm push notification.it works fine with on clicking but I want to start it automatically after the notification is received.Here is my code My FirebaseMessagingService method where I…
4
votes
0 answers

React-Native Android app working in debug but not release

I am working with a React-Native Android application that is using react-native-fcm. We are getting notifications generated by our app server that notify a user that they are receiving a shipment of product. When we test this feature in debug mode,…
4
votes
0 answers

Firebase cloud messaging server - how to subscribe device to a topic using new HTTP v1 api

Currently FCM server provides these raw server protocol: FCM HTTP v1 API Legacy HTTP protocol Legacy XMPP Protocol I using new HTTP v1 API but I find only one endpoint for send messages in this…
melnik_vasya
  • 127
  • 8
4
votes
0 answers

Android : Playing audio file repeatedly on Push-Notification

I was wondering if there is a method to play an audio file on receiving a push notification. It's a short tone of 1second which I want to play for about 1minute at a gap of 10seconds each. Thus, playing the file 6 times in a minute. This audio file…
4
votes
2 answers

Android Things FCM

I've tried to use FCM with Android Things. I've imported the google json, make the changes in Manifest, subscribe the app to a Topic, but I did not receive a push message. The only thing I get is the Pushtoken from the server. So does anyone…
1 2 3
99
100