Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RNBackgroundActionsTask.onStartCommand #238

Open
faizanbutt opened this issue Aug 26, 2024 · 3 comments
Open

RNBackgroundActionsTask.onStartCommand #238

faizanbutt opened this issue Aug 26, 2024 · 3 comments

Comments

@faizanbutt
Copy link

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 ?

@faizanbutt
Copy link
Author

@NhutDang2002 What's that file ?

@ajinvm
Copy link

ajinvm commented Sep 17, 2024

Did someone find the fix,? i am facing same issue

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

com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1049)
Caused by android.app.ForegroundServiceStartNotAllowedException
Service.startForeground() not allowed due to mAllowStartForeground false: service com.vmtrackers/com.asterinet.react.bgactions.RNBackgroundActionsTask

@smitha-2020
Copy link

@faizanbutt @ajinvm Any solution? i have the same problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@faizanbutt @smitha-2020 @ajinvm and others