All Questions

190
votes
18answers
130383 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" /&g...
39
votes
9answers
15436 views

Android app not receiving Firebase Notification when app is stopped from multi-task tray

I have read a similar question on SO, however, I was not able to get the correct answer from it. I have a system wherein we send notification to around 500 devices. Unfortunately, many of these devi...
46
votes
12answers
38850 views

How to send device to device messages using Firebase Cloud Messaging?

After searching the docs I could not find any info on how to send device to device messages using FCM without the use of an external server. For example, if I was creating a chat application I would ...
13
votes
3answers
3265 views

Is it possible to send PushNotifications, using Firebase Cloud Messaging (FCM) to special UDID, directly from device?

I am thinking about keeping all registration ids(push token) in DB and sending notifications to user from iPhone. I tried something like this but did not get any notification. func sendPNMessage() {...
133
votes
11answers
167423 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 ...
24
votes
2answers
23406 views

API key for GCM is suddenly invalid? Unauthorized (401) error

I created an Android API key for GCM Push Notification for my Android application.From the last two days, GCM server returns Unauthorized (401) response in PHP. Is there any reason for Android API k...
18
votes
2answers
14931 views

Push notification works incorrectly when app is on background or not running

I am using Firebase Cloud Messaging to send push notifications. Here is my FirebaseMessageService: public class FireBaseMessageService extends FirebaseMessagingService { @Override public void onMe...
12
votes
3answers
9511 views

How to send Device to device notification by using FCM without using XMPP or any other script.?

Is there any way to send Upstream notification message through FCM from one android device to another devices connected with Firebase database. I know that XMPP server can then receive the upstream ...
71
votes
9answers
73919 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 notificat...
19
votes
4answers
33738 views

Open app on firebase notification received (FCM)

I want to open application automatically when notification is received, is this possible with Firebase and new FCM notifications? I know I can set click_action but that's only for customizing which a...

Previous Next