B4X FEED SDK31 Android12 can't executing services on background ... Error: startForegroundService() not allowed due to mAllowStartForeground false

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن practicalsoftمی باشد و موضوع آن: SDK31 Android12 can't executing services on background ... Error: startForegroundService() not allowed due to mAllowStartForeground false است. این موضوع تا کنون 93 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع SDK31 Android12 can't executing services on background ... Error: startForegroundService() not allowed due to mAllowStartForeground false
آغاز کننده موضوع practicalsoft
تاریخ شروع
پاسخ‌ها
0
بازدیدها
93
پسندها
0
آخرین ارسال توسط PracticalSoft
Jun 6, 2020
11,559
4,422
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

برای دیدن تصاویر باید ثبت نام کنید

[H3] [/H3]
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 '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?

 

عقب
بالا