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

Android 8: firebase default notification icon not showing up

I'm using firebase FCM for my app, and I set up my own notification icon in Manifest:
4
votes
1 answer

Verify stored Firebase FCM tokens

We have developed an app in iOS and Android which stores the FCM tokens in a database in order to send PUSH notifications depending on the user configuration. Users install the app and the token of every device is stored in the database, so we would…
Ugalde
  • 43
  • 2
  • 4
4
votes
1 answer

How to disable Firebase completely? warnings and errors shown in log

I'm disabling analytics on my project deleting the .json file and deleting this from app gradle file: apply plugin: 'com.google.gms.google-services' And also deleting all the push or analytics init calls. Also, I'm adding this on…
4
votes
2 answers

FCM notifications not received when system is just booted

I have implemented FCM push notification in my android application. Push notifications are received under normal circumstances. My scenario is: Turn off the phone. Send the FCM push notification to the Token generated…
4
votes
0 answers

Admin FCM API- Request contains an invalid argument error

Currently I am writing a simple API on Firebase Messaging. My code looks like this- CODE @Path("/f/n") public class Notify { public static final Logger logger = Logger.getLogger(Notify.class); @Path("/m") @Produces("application/json") …
4
votes
1 answer

Getting the List of registered devices from fcm for my site

I am new to FCM and mobile coding. This is what I am trying to achieve:- Develop an app to allow users to select some events. I have a site that will loop through the events for users. When an event is close to its start time or some messages were…
4
votes
2 answers

Firebase send notification at the certain time

I have a task to do cloud reminders using Firebase. I have a time stamp of reminder in my DB. So I need to send notification at that time. In Firebase test console there is a option to send notification in certain time, but I haven't seen this…
4
votes
0 answers

Can I avoid a huge node_modules increase when updating firebase-admin to the latest version?

My node.js app uses firebase-admin (https://www.npmjs.com/package/firebase-admin) for Firebase Cloud Messaging only. When updating its dependencies, I noticed that its node_modules grew hugely in size and number of files. On further investigation,…
davidm_uk
  • 658
  • 6
  • 19
4
votes
1 answer

Get receiver's device token to send notification in Firebase

So I'm learning on how to use firebase to send device-to-device notifications and I saw this answer to send the notification and it seemed straight forward. Now, I know to get the sender's token, it should look like…
4
votes
0 answers

How to use Firebase Cloud Messaging with an existing service worker in Angular 4

I have setup Firebase Cloud Messaging (FCM) to use an existing service worker. const messaging = firebase.messaging(); const platform = platformBrowserDynamic(); platform.bootstrapModule(AppModule) .then(() => registerServiceWorker('sw')) …
4
votes
0 answers

FCM delivers push notification in Android Doze mode but no webcall made

I have developed a device Admin app that applies policies to the device eg restrictions etc. How my system works The webapp sends a push notification to the device via FCM. I used to use GCM and a wakelock.(The latter worked fine). When the push…
turtleboy
  • 8,210
  • 27
  • 100
  • 199
4
votes
1 answer

Duplicate FCM push notifications

Today, I received duplicate FCM push notifications over a period of ~30 mins. These push notifications are identical in terms of content, and the push notification was sent ONCE. Here's a snippet of the timeline of when I was receiving these push…
kyrax
  • 1,192
  • 3
  • 13
  • 29
4
votes
1 answer

Send Push Notifications to Devices and web Browsers using Laravel FCM

I am using following package to send notifications to broswers. https://github.com/kawankoding/laravel-fcm The code to send Notifications, fcm() ->to($recipients) // $recipients must an array ->notification([ 'title' => 'Test…
4
votes
0 answers

iOS .p8 APNs is not working with Firebase

Switching to .p8, from .p12 resulted in that firebase push notifications failed and are not delivered when they are sent from firebase console. This hint message is shown: Invalid APNs certificate. Check the certificate in Settings. When I switch…
4
votes
2 answers

GCM to FCM migration

I have a working Android app with 100K+ users which are using an old GCM API key to receive notifications. I would like to upgrade our server to use FCM, but I am not sure if I can produce a new Firebase API key while keeping old clients with GCM.…
roybensh
  • 41
  • 1
1 2 3
99
100