Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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 ...

-1
votes
2answers
21 views

How move the portion of the background task to the main thread? (Firebase)

I'm making an example for sending push notifications to Android with Firebase. The class that receives the messages is the following: public class MyFirebaseMessagingService extends ...
1
vote
1answer
182 views

ANGULAR Firebase FCM send are success but not visible

I've setup my angular 5 (jhipster) web app to receive FCM message. When i send a FCM message, i got a success in POST man but nothing appear in my browser or receiveMessage() function. Here is my ...
0
votes
0answers
23 views

firebase subscribeToTopic OnCompleteListener is not getting called

I am working on an android project in which user will subscribe to a Firebase topic. I have written code like below. FirebaseMessaging.getInstance().subscribeToTopic("update") ....
0
votes
0answers
27 views

Tab badge only works when notification is clicked

I'm using FCM (GCM) for my notifications and this can be display both in foreground and background mode. I'm updating the badge on my tab controller via the notification center if the user is inside ...
0
votes
1answer
35 views

How to send push notification just only to UID User in Firebase?

I'm just using firebase, now I've managed to create user authentication and have a few push notification questions in the firebase. Before I followed the tutorial here, and it worked I was very happy....
0
votes
0answers
31 views

Firebase messages are not receiving [duplicate]

I am working on an android project for which I am using Firebase cloud messaging to send some push notifications. Messages used to deliver correctly. I wanted to update the app with the latest ...
-1
votes
0answers
10 views

FCM Push Notification in react native ios app

In iOS app i'm received silent push notification in local build but fabric build silent push notification is not receiving.
0
votes
0answers
8 views

How to check OnTokenRefresh() is working or not in firebase web?

I want to know deep about OnTokenRefresh() in firebase for the web. When it gets triggered? when will the token should be changed? What are the possible condition for changing the token via ...
2
votes
0answers
12 views

Firebase Data messages not delivered to iOS when using new HTTP v1 API

Firebase supports Notification messages and Data messages. Data messages don't trigger visual notification and are handled by the client (iOS App) when the app is in foreground. Communication is then ...
-1
votes
0answers
21 views

How to convert a FCM token to APNS token?

We consider migrating from Firebase Cloud Messaging to build our own push engine. We need to migrate the users converting FCM tokens to get the raw APNS token. How can that be done? I can only find ...
0
votes
0answers
20 views

Firebase Exact Same versions Error?

I get the error below All gms/firebase libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 17.3.0, 17.0.0, 16.0.1, 16.0.0, 15....
0
votes
1answer
30 views

Firebase Cloud functions to Android application notifications

I need some hints for the following system: client app: Android backend: Firebase Cloud Funtions database: realtime database One of the scenarios is as follows: All users are on android devices. ...
0
votes
0answers
40 views

My application crashes after google calendar implementation in FCM messaging

I am creating the android app for booking and also I need FCM messaging in the android app.When i implement FCM messaging than it is working well but after i implement the Google calendar in app than ...
6
votes
2answers
3k views

how to get gcm_sender_id for website in firebase

I am trying to use push notification for my web site.. I am trying fcm. In the google documentation (https://firebase.google.com/docs/cloud-messaging/js/client) they told us to use gcm_sender_id in ...
0
votes
0answers
4 views

Firebase Cloud Messaging notifications: Managing changing/expiring device registration_ids within a device group

I am developing an iOS app with Cloud Messaging functionality and am trying to integrate push notifications for user-to-user messaging. However, I have come across an issue which I will illustrate ...
8
votes
6answers
7k views

Error: AGPBI: Program type already present: com.google.android.gms.auth.api.signin.internal.zzg

In my Adrdoi app, where I use Google Login and Firebase Cloud Messaging, I get this error message: AGPBI: {"kind":"error","text":"Program type already present: com.google.android.gms.auth.api.signin....
2
votes
1answer
252 views

Firebase web push notifications working on localhost but not in dev environment

I have a simple web notification application based from simply-notify. Here is the Subscribe page to subscribe for push notifications and here is the Dashboard to send messages. The push ...
-1
votes
0answers
23 views

Android notification on Firebase message even with `Data message`

I'm using Firebase Cloud Messaging to send messages to Android devices, but each time I send a message, an Android notification containing the title and the description of my message is displayed. I'm ...
-1
votes
0answers
50 views

Is there any way to send messages to an Android device without installing a client app?

I want to send notifications to android device through FCM or any other method without installing a client app on device. Instead I want to use the native android messaging app which comes pre ...
0
votes
2answers
39 views

How to send notification to any device when it goes online?

I remark that when I send a message using FCM only the online devices receive the notification is there any way to send to all Devices ( the online devices and the other devices when they go online)?
-2
votes
0answers
22 views

How can I send notification to application b from application a of the same project?

Hi I'm using Firebase Cloud Message. I created a project and there are 2 applications in it. How can I send a notification when I press a button on application B from application A? Is there a way to ...
0
votes
0answers
16 views

Cordova Firebase Push Notifications IOS

first post here, please be nice :D Currently building a cordova/phonegap application with the plugin: https://github.com/arnesson/cordova-plugin-firebase Notifications arrive perfectly fine on ...
0
votes
0answers
22 views

Identify Uninstalled APP user for Both IOS and Android using FCM

Current Approach Currently, we are using FCM for notification process. So we are working on utility where we need to identify uninstalled app user from existing database. We are using the silent ...
2
votes
3answers
613 views

FCM onTokenRefresh() Can't create handler inside thread that has not called Looper.prepare()

I have an app which is basically get the notification from my own server using Firebase Cloud Messaging service whenever the API is called, strangely when i install it through Android studio RUN menu, ...
0
votes
0answers
25 views

Firebase onNewToken crashes on Android > 8.0

I have this following code, it crashes on Android 8.0 and up but works fine on older Android Versions: package com.myapp.firebase; import android.os.Handler; import android.util.Log; import com....
0
votes
1answer
21 views

Check if there are unread notifications on flutter app

I programmed for a while now in flutter and I'm encountering an issue when handling notifications coming from the server through Firebase. The problem is that if I receive a notification while thee ...
-3
votes
1answer
30 views

Not receiving notifications with firebase functions

I have been trying to implement Cloud Messaging for my app so that every user of the app would receive notification automatically when a new child is added to the Realtime Database. In my ...
7
votes
1answer
2k views

Receive push notifications on one android app from two Firebase projects

I have an Android app, and I want it be able to receive push notifications from two different Firebase projects. I read the blog "Working with multiple Firebase projects in an Android app" https://...
6
votes
3answers
4k views

How to put multiple project_number/sender id in google-services.json

I want to be able to add more than one sender id in my android app. From https://developers.google.com/cloud-messaging/concept-options GCM allows multiple parties to send messages to the same ...
0
votes
0answers
18 views

FireBase token service not working for IPV6 network

I am using FCM token in android application. It works properly if my device sim setting is enable with IPv4 and IPv6 option and getting the token. But if I change the setting to only IPV6 then From ...
-2
votes
0answers
34 views

How to handle FCM notification for multiple user on same device? [duplicate]

As per official documentation, FCM token will be generated by it self and onTokenRefresh() will be called when user first install the app or FCM token instance is refreshed. But the problem is when a ...
0
votes
1answer
18 views

iOS FCM data only message does not call messaging:didReceiveMessage

Firebase Messaging version 5.6.0. I am attempting to handle a data only message in the foreground via Firebase Messaging on iOS 9.0 (10 if needed), but it is not calling FIRMessagingDelegate's ...
1
vote
2answers
45 views

How to send push notifications without using Firebase console

I have an app that has a messaging feature via Firebase. It works within the app and I have a firebase observer setup to grab new messages in realtime. What I don't know how to do is trigger push ...
42
votes
13answers
89k views

Firebase (FCM) how to get token

It`s my first to use FCM. I download a sample from firebase/quickstart-android and I install the FCM Quickstart.But I can`t get any token from the log even hit the LOG TOKEN button in the app. Then ...
0
votes
2answers
27 views

Firebase Cloud Messaging / Pushing Notification to Web platform using JavaScript is not receiving the message

Now I am developing a Web application that needs to use the live-notification feature. I am using Google Firebase's Cloud Messaging service. I can successfully register the service and retrieve the ...
1
vote
4answers
3k views

FCM (Firebase Cloud Messaging) send to multiple device group

From Firebase docs and StackOverflow questions, I understood that we can send Push Notifications to multiple devices through Topic Messaging and Device Group Messaging. But I would like to know if is ...
25
votes
3answers
5k views

FCM topic - Cannot subscribe to topic: xxx with token: (null) - iOS

I'm getting this error from Firebase Messaging API: [Firebase/Messaging][I-FCM002010] Cannot subscribe to topic: /topics/testTopic with token: (null) But before: Messaging.messaging().subscribe(...
0
votes
0answers
9 views

FCM 404 “Requested entity was not found” errorCode: “UNREGISTERED”

I am using WebPush in my project and it works well for the most part. However, occasionally - often after a prolonged period of use - a user will receive a 404 error with the following JSON response: ...
0
votes
1answer
20 views

Firebase verifyIdToken Error: Decoding Firebase ID token failed.

I am trying to setup an Android app communicating with a NodeJS REST API that communicates with Firebase but it seems the firebase token does not work for me. I'm running a local nodejs server and ...
0
votes
0answers
14 views

Firebase is showing statistics only for a single older version of my Application?

Firebase is not showing the report for my recent application version. It only showing report for Version 1.0 where my recent version is 5.0. Steam view, Latest Release section is showing report only ...
0
votes
2answers
40 views

How to send notifications (FCM) using Spring Boot

I have an API and I want to send a notification to the smartphone when I alter something in a table called Meeting. For that I am creating a method of type POST where I send the following JSON Body ...
4
votes
1answer
2k views

Ionic 3's PWA & Firebase Cloud Messaging registration

I was following this article here (which is not complete unfortunately) in attempt to learn how to friend Ionic 3 based PWA and Firebase Cloud Messaging: Push Notifications with FCM What I did: as ...
16
votes
11answers
24k views

Correct way to retrieve token for FCM - iOS 10 Swift 3

i had implement Firebase with FirebaseAuth/FCM etc and did sent notification successfully through Firebase Console. However i would need to push the notification from my own app server. i am ...
40
votes
10answers
81k views

Error: fix the version conflict (google-services plugin)

As per this SO thread, I know there are version conflicts, but issue still persists after new versions from Google. Error:Execution failed for task ':app:processDebugGoogleServices'. Please fix ...
6
votes
2answers
3k views

Push notifications in Apple Safari with FCM

We implemented push notifications using FCM in chrome and firefox and it worked fine, but Safari doesn't support Service Workers which is mandatory for FCM. Did anyone deal with this kind of issues? ...
63
votes
6answers
33k views

FCM with AWS SNS

I am using AWS resources for my android project, I am planning to add push notification service for my project with AWS SNS.there are few questions bothering me much. I did not find any questions ...
0
votes
0answers
25 views

Can't display local notifications when app is closed (iOS)

I'm using react-native-firebase to receive data messages from my firebase instance. On both platforms my application receives data sent by FCM. In Android, in all three cases (foreground, background, ...
0
votes
2answers
50 views

Xamarin.Android FCM Notification does not display in HUD While app closed/backgrounding

I am having an issue on Oreo devices where notifications are simply just not displayed in the hud when they are sent to client. I can assure that they are being received in the background as i've ...
0
votes
1answer
31 views

Swift: FCM change sound of notification

I use this code: let userInfo = notification.request.content.userInfo let position = userInfo["TITLE"] as? NSString completionHandler([.alert, .badge, .sound]) This code play default sound, but i ...
0
votes
1answer
31 views

How should I assign a notification channel to my existing Firebase notification class?

Using Firebase, I send notifications to my app and open certain activity from the click-action of the notification data. The problem is, it works fine where API level is <26. But as for the new ...