dpa99c/cordova-plugin-firebasex

[FEATURE][Android] Include AutoStarter library to resolve OEM-specific notification message issue

dpa99c opened this issue · 7 comments

Some users of this plugin are reporting not receiving FCM notifications when the app is not running (vs running in the background) on Android.
Upon investigation it appears there are some OEMs (e.g. Xiaomi, Letv, Honor, Oppo, Vivo, Huawei) which by default blacklist apps from autostarting.
To resolve this we can include the AutoStarter library in Android builds which is specifically aimed at resolving this issue on at least some of those OEMs (and hopefully more in future).

Since I myself don't have access to devices produced by these specific OEMs, I will need the help of plugin users who can access such devices to test the solution.

hey @dpa99c this looks really promising (I have a vivo from that list). I'll see if it works and if I can create a PR for it.

hi @dpa99c,
we got Xiaomi and Huawei if you need further debugging assistance.

It is android plugin autostart and application developed in ionic

i would be thankful if you provide me solution in ionic 4 for background notification when app is killed using firebase x plugin

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Reopening as stalebot incorrectly closed it

gmbad commented

hello @dpa99c.

On my device xiaomi is not working when the app is closed.

On my samsung everything works correctly.

I am available to test possible new releases to fix this problem.

Thanks

Hello @dpa99c

Is there an estimated date, in which they will add this function to the library? or do we have to implement it ourselves