After installing and using sdk 31, the services that run when the application is in the background throw the following error:
Fatal Exception: java.lang.RuntimeException: Unable to start receiver com.xxxxxxxxx.starter$starter_BR: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service com.xxxxxxxxxx/.starter
I have read something that there is a possibility using a "work-runtime" in stackoverflow
implementation 'androidx.work:work-runtime:2.7.1'
implementation 'com.google.guava:guava:27.0.1-android'
Does anyone have a solution to be able to run in the background without error?
Fatal Exception: java.lang.RuntimeException: Unable to start receiver com.xxxxxxxxx.starter$starter_BR: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service com.xxxxxxxxxx/.starter
I have read something that there is a possibility using a "work-runtime" in stackoverflow
Fatal Android 12: Exception: startForegroundService() not allowed due to mAllowStartForeground false
I noticed one exception (Firebase Crashlytics) for Pixel 5 and Pixel 4a (both on Android 12), no other devices, happened only two times, one time for each device. What does it mean? Android 11 and 12
stackoverflow.com
implementation 'com.google.guava:guava:27.0.1-android'
Does anyone have a solution to be able to run in the background without error?