Skip to content

RNBackgroundActionsTask.onStartCommand #238

@faizanbutt

Description

@faizanbutt

Fatal Exception: java.lang.RuntimeException
Unable to start service com.asterinet.react.bgactions.RNBackgroundActionsTask@cedd488 with Intent { cmp=com.myapp/com.asterinet.react.bgactions.RNBackgroundActionsTask (has extras) }: android.app.ForegroundServiceStartNotAllowedException: Service.startForeground() not allowed due to mAllowStartForeground false: service com.myapp/com.asterinet.react.bgactions.RNBackgroundActionsTask.

I am getting this error on Firebase Crashlytics for some time.
Using the latest version of react-native-background-actions 4.0.1.
All the crashes are occurring in background mode of the devices on android 13 and android 14.

Anyone can help in this ?

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