Not receving Firebase Cloud Messaging When App Is Completely Closed(Killed mode)

2,264 views
Skip to first unread message

SK Suman

unread,
Mar 24, 2022, 1:53:56 PM3/24/22
to fireba...@googlegroups.com
it's regarding android push notifications.
It's working fine for the Android version lower than oreo(API level 26 ). But above oreo (API level 26 ), the push notifications are not coming when the app is closed. 

I've followed the steps given in the firebase documentations:--


PFA the code used by me for your reference.

Please help with a solution to this issue, provide documentation if available.
Looking forward to hearing from you soon.

Thanks & Regards,
SK SUMAN

  
AndroidManifest.xml
MainActivity.java
NotificationReceiver.java
CustomMessagingService.java

Darouy Otmane

unread,
Jun 20, 2022, 8:36:09 AM6/20/22
to Firebase Google Group
hi 
when you creating the message please specify the priority to high ,with this the device well prompte the notification even the app cloused or in background

Carsten Hagemann

unread,
Jun 21, 2022, 9:17:49 AM6/21/22
to Firebase Google Group
You need to assign the notifications to a notifications channel:
> Starting in Android 8.0 (API level 26), all notifications must be assigned to a channel or it will not appear. 


Furthermore, have a look at the notification importance settings: https://developer.android.com/guide/topics/ui/notifiers/notifications.html#importance
Reply all
Reply to author
Forward
0 new messages