firebase-cloud-messaging

Open activity on firebase notification received in foreground

≯℡__Kan透↙ 提交于 2020-12-01 10:04:30
问题 When my application is open and I receive a notification I want to be able to open the activity associated immediately without the need of the user to tap on the notification. This question is very similar: Open app on firebase notification received (FCM) But it opens the app when it is in background, I need to do it when my app is in foreground. From the firebase documentation: Notifications delivered when your app is in the background. In this case, the notification is delivered to the

Push Notifications after App is killed

馋奶兔 提交于 2020-11-30 12:37:06
问题 I can't seem to receive FCM Push Notifications that I send from the FCM console after app is killed on android, as in long-press the Overview button and swiping the app to be killed. It works absolutely fine when the app is running in the foreground or background. This may seem like a duplicate question but I have tried the other methods but I still cannot seem to get it. NotificationService.java public class NotificationService extends FirebaseMessagingService { private static final String

Push Notifications after App is killed

只愿长相守 提交于 2020-11-30 12:34:08
问题 I can't seem to receive FCM Push Notifications that I send from the FCM console after app is killed on android, as in long-press the Overview button and swiping the app to be killed. It works absolutely fine when the app is running in the foreground or background. This may seem like a duplicate question but I have tried the other methods but I still cannot seem to get it. NotificationService.java public class NotificationService extends FirebaseMessagingService { private static final String

Want to know how FCM works in below scenarios

↘锁芯ラ 提交于 2020-11-29 03:48:25
问题 I want to know how FCM Notifications works in below scenarios: Same user logging into multiple devices. Will all the devices gets the notification? What if user uninstalls the app? Does FCM sends the notification even if user uninstalls the device, and later checks for sending failed event? If login changes on the device - Suppose if I login to a device as user A, and then logged out of the device and logged in as user B. I must not get the notifications for user A. How this situation is

FirebaseMessaging.getInstance(firebaseApp) for secondary app supposed to be public but it's private?

谁说我不能喝 提交于 2020-11-29 03:16:29
问题 I'm trying to subscribe to an FCM (Firebase Cloud Messaging) topic for a secondary Firebase App and according to the documentation this could be done by the overloaded getInstance which takes the secondary FirebaseApp instance as a parameter: https://firebase.google.com/docs/reference/admin/java/reference/com/google/firebase/messaging/FirebaseMessaging#public-static-synchronized-firebasemessaging-getinstance-firebaseapp-app public static synchronized FirebaseMessaging getInstance (FirebaseApp

FirebaseMessaging.getInstance(firebaseApp) for secondary app supposed to be public but it's private?

核能气质少年 提交于 2020-11-29 03:11:26
问题 I'm trying to subscribe to an FCM (Firebase Cloud Messaging) topic for a secondary Firebase App and according to the documentation this could be done by the overloaded getInstance which takes the secondary FirebaseApp instance as a parameter: https://firebase.google.com/docs/reference/admin/java/reference/com/google/firebase/messaging/FirebaseMessaging#public-static-synchronized-firebasemessaging-getinstance-firebaseapp-app public static synchronized FirebaseMessaging getInstance (FirebaseApp

FATAL EXCEPTION: Firebase-Messaging-Intent-Handle — java.lang.NoClassDefFoundError

跟風遠走 提交于 2020-11-25 06:03:20
问题 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 Process: com.google.android.youtube, PID: 26820 java.lang.NoClassDefFoundError: aewt at aewu.b(PG:1) at duc.a(PG:230) at duc.get(PG:247) at aevw.b(PG:1) at dud.al(PG:5) at dud.aw(PG:4) at dud.bg(PG:8) at duc.a(PG:232) at duc.get(PG:247) at afke.a(PG:1) at aeri.b(PG:1) at dud.fv(PG:4) at duc.c(PG:269)

FATAL EXCEPTION: Firebase-Messaging-Intent-Handle — java.lang.NoClassDefFoundError

不羁的心 提交于 2020-11-25 05:56:52
问题 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 Process: com.google.android.youtube, PID: 26820 java.lang.NoClassDefFoundError: aewt at aewu.b(PG:1) at duc.a(PG:230) at duc.get(PG:247) at aevw.b(PG:1) at dud.al(PG:5) at dud.aw(PG:4) at dud.bg(PG:8) at duc.a(PG:232) at duc.get(PG:247) at afke.a(PG:1) at aeri.b(PG:1) at dud.fv(PG:4) at duc.c(PG:269)