Skip to content

react native background actions (service suspend after 10 to 15second when screen is locked) #536

@jameelwahab

Description

@jameelwahab

Hello,
I am facing the issue on my react native app CLI
Issue ==> react native background actions (service suspend after 10 to 15second when screen is locked)
Testing device==> Android version 14 (but I am not facing the same issue on android version 12 )
package usage version==> "react-native-background-actions": "^4.0.1",

"react-native": "0.79.3"

AndroidManifest.xml==>

<service android:name="com.asterinet.react.bgactions.RNBackgroundActionsTask" android:foregroundServiceType="dataSync"/>

android build.gradle====>
buildscript {
ext {
buildToolsVersion = "35.0.0"
minSdkVersion = 24
compileSdkVersion = 35
targetSdkVersion = 35
ndkVersion = "27.1.12297006"
kotlinVersion = "2.0.21"
}

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