You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: