Android:startForegroundService TransferService is crashing in API 33. #3322
Labels
bug
Something isn't working
closing soon
Issue will auto-close if there is no additional activity within 7 days.
pending-community-response
Issue is pending response from the issue requestor
s3
Issues with the AWS Android SDK for Simple Storage Service (S3).
Describe the bug
Calling startForegroundService with TransferService is crashing in API 33 when the app is removed from background.
Fatal Exception: java.lang.RuntimeException: Unable to create application com.test.application.TestApplication: android.app.ForegroundServiceStartNotAllowedException: startForegroundService() not allowed due to mAllowStartForeground false: service TransferService
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7619)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication()
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2400)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8757)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
To Reproduce
**Environment Information
The text was updated successfully, but these errors were encountered: