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

Context.startForegroundService() did not then call Service.startForeground() #565

Open
TamasFarago opened this issue Mar 7, 2022 · 3 comments

Comments

@TamasFarago
Copy link

Your Environment

  • Plugin version: 0.6.6
  • Platform: iOS or Android: Android
  • OS version: 8
  • Device manufacturer and model: Xperia XA1 Ultra
  • Running in Simulator:
  • React Native version:
  • Plugin configuration options:
  • Link to your project:

Context

Firebase crashlytics reported an error:

Fatal Exception: android.app.RemoteServiceException
Context.startForegroundService() did not then call Service.startForeground()
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1845)
android.os.Handler.dispatchMessage (Handler.java:108)
android.os.Looper.loop (Looper.java:206)
android.app.ActivityThread.main (ActivityThread.java:6749)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:240)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:845)

I don't know why the crash is happening

Expected Behavior

No crash

Actual Behavior

Crash

Possible Fix

Steps to Reproduce

Context

Debug logs

@hariks789
Copy link

I have forked and released a new version of this library with fixes for android 12 issues and this crash.
https://www.npmjs.com/package/@hariks789/react-native-background-geolocation
Let me know if this fixes your issue

@AlessioMTX
Copy link

@hariks789 which is the branch that should work? develop?

@chanphiromsok
Copy link

I have forked and released a new version of this library with fixes for android 12 issues and this crash.

https://www.npmjs.com/package/@hariks789/react-native-background-geolocation

Let me know if this fixes your issue

could you make PR ?

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

4 participants