13,761 questions
590
votes
32
answers
637k
views
How to handle notification when app in background in Firebase
Here is my manifest:
<service android:name=".fcm.PshycoFirebaseMessagingServices">
<intent-filter>
<action android:name="com.google.firebase.MESSAGING_EVENT&...
347
votes
33
answers
308k
views
Firebase onMessageReceived not called when app in background
I'm working with Firebase and testing sending notifications to my app from my server while the app is in the background. The notification is sent successfully, it even appears on the notification ...
298
votes
19
answers
178k
views
FirebaseInstanceIdService is deprecated
Hope all of you aware of this class, used to get notification token whenever firebase notification token got refreshed we get the refreshed token from this class, From following method.
@Override
...
269
votes
21
answers
349k
views
Android Push Notifications: Icon not displaying in notification, white square shown instead
My app generates a notification, but the icon I set for that notification is not being displayed. Instead, I get a white square.
I have tried resizing the png of the icon (dimensions 720x720, 66x66, ...
259
votes
17
answers
465k
views
How can I send a Firebase Cloud Messaging notification without use the Firebase Console?
I'm starting with the new Google service for the notifications, Firebase Cloud Messaging.
Thanks to this code https://github.com/firebase/quickstart-android/tree/master/messaging I was able to send ...
219
votes
11
answers
251k
views
Firebase messaging, where to get Server Key?
Firebase allows us to send notification messages via our own application by making POST request.
This tutorial, gives to us instructions how to make this request. However, there is Authorization ...
218
votes
13
answers
199k
views
GCM with PHP (Google Cloud Messaging)
Update: GCM is deprecated, use FCM
How can I integrate the new Google Cloud Messaging in a PHP backend?
204
votes
14
answers
330k
views
Where can I find the API KEY for Firebase Cloud Messaging?
I am trying to figure out how the new version of GCM or Firebase Cloud Messaging works so I moved one of my projects to the new Firebase console, If I did not have the API KEY or I want to create a ...
167
votes
11
answers
222k
views
Notification Icon with the new Firebase Cloud Messaging system
Yesterday Google presented at Google I/O the new notification system based on the new Firebase. I tried this new FCM ( Firebase Cloud Messaging ) with the example on Github.
The icon of the ...
147
votes
27
answers
455k
views
Firebase (FCM) how to get token
It's my first time using 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.
...
141
votes
37
answers
279k
views
FCM getting MismatchSenderId
I have an application that uses Google FCM for sending push notifications.
When i send a push notification to a group of users, i get a response of MismatchSenderId for some of them. Even though, all ...
137
votes
2
answers
143k
views
What method should I use now since FirebaseInstanceId.getInstance().getToken() is deprecated [duplicate]
I would like to know what would be the correct way to get Firebase token for sending push notification now that getToken() is deprecated.
136
votes
18
answers
206k
views
how to open particular screen on clicking on push notification for flutter
I am trying to achieve open specific screen on clicking push notification and my payload looks like this:
var payload = {
notification: {
title: notificationTitle,
...
127
votes
13
answers
163k
views
Firebase FCM force onTokenRefresh() to be called
I am migrating my app from GCM to FCM.
When a new user installs my app, the onTokenRefresh() is automatically being called. The problem is that the user is not logged in yet (No user id).
How can I ...
125
votes
8
answers
29k
views
FATAL EXCEPTION: Firebase-Messaging-Intent-Handle -- java.lang.NoClassDefFoundError
I am not using any Firebase or Youtube code/libraries in my project. Yet recently, in Android Pre-Release Reports I am seeing crashes with this:
FATAL EXCEPTION: Firebase-Messaging-Intent-Handle
...