Cordova-plugin-firebase: FCM push notifications are not appearing in background in android 8.0 Oreo device.

Created on 23 Feb 2018  路  14Comments  路  Source: arnesson/cordova-plugin-firebase

i've installed and configured all the requirements of fcm on client and server(node-fcm) both and sending push notification successfully whenever i want in all devices but when i'm sending to Android 8.0 device its coming within app when app is opened while not coming in background when app is closed. kindly anyone who can help me in this or tell if fcm has updates for oreo or not. or this is a bug.
Thanks

messaging android

All 14 comments

I have updated my device to android oreo. Now I am not receiving the notification on android Oreo.
before updating , it was working.

Facing the same issue. Any update on it?

not yet

Please update , also i m searching and trying the same.

I am also facing the same problem, appreciate if anyone can help.

please see if PR #222 fixes this issue. Install the plugin from github to test.

Closing for cleanup. Please test with the latest version and reopen if it is still an issue.

I'm still seeing the issue with v1.0.5.

window.FirebasePlugin.onNotificationOpen callback continues to 'receive' the notification while app is in background.

And this on Android 6, 7 and 8.

@soumak77 this problem happens in iOS.

window.FirebasePlugin.onNotificationOpen does not fire when app is in background.
I also tried the github version.

Here with Chrome remote debug tools.

Pause event with console output to show app is in background, then send push notification. window.FirebasePlugin.onNotificationOpen callback still receives the notification.

remote_debug_push_notification

Perhaps I'm 'holding it wrong', but I fail to understand how to do it differently.

@diegodambra easy bro, try iOS.

@Birowsky I need it to work on both platforms!

iOS requires tiresome setup. Seems legit to go with Android first.

Please use handel intent in firebase messaging service class

compile 'com.google.firebase:firebase-messaging:11.0.4'

and use this in dependency

May this be related to the notification channels that were introduced in Oreo?

This plugin would need to expose a way of creating notification channels in order to be able to send messages to these channels.

Edit: I believe #603 is addressing this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

merbin2012 picture merbin2012  路  4Comments

ulisesvera picture ulisesvera  路  5Comments

matthitachi picture matthitachi  路  5Comments

JonSmart picture JonSmart  路  3Comments

rolinger picture rolinger  路  3Comments