Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App is crashed when moving to background when using a foreground icon #583

Open
Taxi4you opened this issue Mar 27, 2023 · 1 comment
Open

Comments

@Taxi4you
Copy link

If you don't configure this:

cordova.plugins.backgroundMode.setDefaults({ silent: true })

Then when you move to background the app is crashing immediately on Android 10 +.
However the plugin creator says that a foreground service icon is highly recommended and that it can be found under platforms/android/res/drawble/icon.png.

Well I have added an icon for there and still it doesn't work.

@justingreenwoodcstg
Copy link

There are a number of PR's here that you can apply that may fix your issue. This plugin isn't maintained and there are almost 1000 forks now. I have the plugin almost working, but now that I'm using capacitor, my app still falls asleep in the background, unpredictably. I believe that there is something different with capacitor than there was with cordova that might be causing this headache, because even the older versions of android that used to work with the plugin, don't work anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants