Skip to content

ForegroundServiceStartNotAllowedException on API 31+ (v4.9.2) #675

Open
@MikolajMichalczak

Description

@MikolajMichalczak

Hello,

I'm experiencing a crash on Android 12+ (API 31). The crash log indicates ForegroundServiceStartNotAllowedException, even though version 4.9.2 should handle foreground service behavior correctly.

Fatal Exception: java.lang.RuntimeException
Unable to start service net.gotev.uploadservice.UploadService@a0ea1b5 with null:
android.app.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false

Is there anything specific I need to configure to ensure proper foreground service behavior? Any guidance would be appreciated.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions