Questions tagged [firebase-notifications]

Firebase Notifications is a free service that enables targeted user notifications for mobile app developers. Firebase Notifications is a cross-platform solution that lets you easily deliver notifications at no cost.

About Firebase Notifications

Firebase Notifications is a component of the Firebase suite of tools for cross-platform application development.

  • Send free and unlimited notifications across Android, and iOS.
  • Send messages and analyze effectiveness in one dashboard without writing any code
  • Integrate with Firebase Analytics to deliver messages to a user segment

Related tags

749 questions
12
votes
2 answers

FCM - Setting badge in onMessageReceived

I have an Android application, where I'm using some method to show notification number on app icon. Now I want to set that number when notification is received. I thought that I should set the number when notification received so I set it inside…
12
votes
2 answers

Can Firebase Console send data payload?

Is it possible to send data payload through Firebase Console that we can receive in onMessageReceived() while our app is in background/killed?
12
votes
3 answers

Some devices don't receive FCM notifications

I'm having a problem since some of my devices where I'm testing my app don't receive their notifications and it doesn't raise an exception. The notifications comes from FCM and I'm using a custom service to show…
11
votes
2 answers

FCM Token is not generating in some android devices

I was having issues in GCM, so i migrates to FCM but I am still getting issues related to token. I launched my updated app and I checked that there is 300 new users, 200 of them are getting tokens and 100 are not getting any token, it's a very…
Jd Prajapati
  • 1,953
  • 13
  • 24
11
votes
1 answer

Firebase Cloud Messaging Auth Tokens vs Registration Token

Is there a difference between the firebase.auth().getToken() and the FCM registration token returned via Android setup: FirebaseInstanceId.getInstance().getToken()? I am currently using https://www.npmjs.com/package/firebase which uses the first…
11
votes
5 answers

How to send firebase notifications to audience via HTTP

In Firebase Console I set up audiences based on various user properties and now am able to send notifications to different user segments via console. Is there a way to do the same by http requests to fcm servers? There should be a trick with "to"…
11
votes
5 answers

Firebase push notification not working

I developed an android applicaiton. I used firebase for notification. I read firebase documentation then I made them respectively. I could send a push notification to one device by using InstanceID token. But I could not send push notification to…
Andev
  • 355
  • 3
  • 7
  • 16
10
votes
4 answers

Firebase Notification To Device with FCM Token Says Sent but not received

I am attempting to send a simple push notification from the firebase notification console to a specific device using an FCM token. The firebase notification console shows the notification as sent but the device does not receive it. I have tried…
Rbar
  • 3,740
  • 9
  • 39
  • 69
10
votes
3 answers

Can FCM notification on Android overwrite previous one?

I'm using FCM to send notifications to Android devices. When the app is in background, if I send 10 notifications, the devices will show up 10 entries on the notification bar. I want FCM to make only one entry on notification bar, i.e. the newer one…
10
votes
1 answer

How to send message from Firebase to device when app is killed?

I am trying to get familiar with Firebase Notifications. It works fine, but I am stuck with receiving messages from the notification console when the app is not turned on. I know that documentation says that: if your app in foreground or background…
10
votes
7 answers

not receiving firebase notification from console

i am not receiving notification after sending it through firebase console , i tried sending many notification but received one or two from around 20 notifications, i followed this guide firebase messaging from github ,why am i not receiving…
Red
  • 139
  • 1
  • 2
  • 9
10
votes
4 answers

Firebase chat Push Notifications

I am developing a chat app using Firebase as backend. It is required that on every new message receiver gets a push notification saying that he got a new message. This is first time I am doing something like this so I have a question: Since we do…
9
votes
2 answers

why do I receive multiple FCM notifications on android 7

I am trying to integrate FCM notification in my project. I have Cloud Function backend, and app runs on android. Below is cloud code to send notification: exports.notificationTest = …
9
votes
1 answer

How to handle notifications from the System Tray

I know that Handle messages in a backgrounded app When your app is in the background, Android directs notification messages to the system tray. A user tap on the notification opens the app launcher by default. This includes messages that contain…
9
votes
2 answers

Firebase Audience with time events criteria

I would like to define an audience in Firebase based on last time an event was fired. For example, I would like to reengage users who did not open the app (event: app_open) last 30 days. I've been trying to define an audience based on this criteria…