Rapsssito / react-native-background-actions

React Native background service library for running background tasks forever in Android & iOS.
MIT License
818 stars 117 forks source link

react-native-background-actions 4.0.0 is Not working with Android 14 App Crash issue #227

Closed SaGaR1084 closed 4 months ago

SaGaR1084 commented 4 months ago

Android version details:-

buildToolsVersion = "34.0.0"
minSdkVersion = 23
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "26.1.10909125"
kotlinVersion = "1.9.22"

package version details:-

"react": "18.2.0",
"react-native": "0.74.2",
"react-native-background-actions": "^4.0.0",

Getting Error:-

Screenshot 2024-06-26 at 11 46 04 AM
vzkharov commented 4 months ago

Maybe problem with react-native@0.74. I have an error because of this, just downgrade to 0.73.6

Can you share your manifest?

SaGaR1084 commented 4 months ago
Screenshot 2024-06-27 at 9 58 25 AM
vzkharov commented 4 months ago

The manifest is missing

<service android:name="com.asterinet.react.bgactions.RNBackgroundActionsTask" android:foregroundServiceType="..."  />
chenkuangkuang commented 4 months ago

I have writen foregroundServiceType, but not work ( crash again ). Does this version support react-native 0.71?

this is my environment:

"react-native": "0.71.14",
"react-native-background-actions": "^4.0.1"

AndroidManifest.xml:

android:name="com.asterinet.react.bgactions.RNBackgroundActionsTask" android:foregroundServiceType="location"

build.gradle:

compileSdkVersion = 34 targetSdkVersion = 34 kotlinVersion = '1.8.10'

@vzkharov

albertalef commented 2 months ago

@chenkuangkuang Did u got the answer? I writen the same here, but still crashing