Comments (5)
I get the same error on my emulator. I also can't reproduce or provoke it, but it happens sometimes.
from react-native-background-geolocation.
I got the same error through my Android users too.
Here is the output:
java.lang.RuntimeException: Unable to destroy activity {com.sxc.songxiaofu.captain/com.sxc.songxiaofu.captain.MainActivity}: java.lang.IllegalArgumentException: Service not registered: com.marianhello.react.BackgroundGeolocationModule$1@422036c0
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3496)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3514)
at android.app.ActivityThread.access$1400(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1261)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5105)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalArgumentException: Service not registered: com.marianhello.react.BackgroundGeolocationModule$1@422036c0
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:926)
at android.app.ContextImpl.unbindService(ContextImpl.java:1652)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:529)
at com.marianhello.react.BackgroundGeolocationModule.doUnbindService(BackgroundGeolocationModule.java:502)
at com.marianhello.react.BackgroundGeolocationModule.onHostDestroy(BackgroundGeolocationModule.java:105)
at com.facebook.react.bridge.ReactContext.onHostDestroy(ReactContext.java:205)
at com.facebook.react.XReactInstanceManagerImpl.moveToBeforeCreateLifecycleState(XReactInstanceManagerImpl.java:607)
at com.facebook.react.XReactInstanceManagerImpl.onHostDestroy(XReactInstanceManagerImpl.java:539)
at com.facebook.react.XReactInstanceManagerImpl.onHostDestroy(XReactInstanceManagerImpl.java:546)
at com.facebook.react.ReactActivityDelegate.onDestroy(ReactActivityDelegate.java:128)
at com.facebook.react.ReactActivity.onDestroy(ReactActivity.java:72)
at android.app.Activity.performDestroy(Activity.java:5403)
at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1117)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3483)
... 11 more
java.lang.IllegalArgumentException: Service not registered: com.marianhello.react.BackgroundGeolocationModule$1@422036c0
at android.app.LoadedApk.forgetServiceDispatcher(LoadedApk.java:926)
at android.app.ContextImpl.unbindService(ContextImpl.java:1652)
at android.content.ContextWrapper.unbindService(ContextWrapper.java:529)
at com.marianhello.react.BackgroundGeolocationModule.doUnbindService(BackgroundGeolocationModule.java:502)
at com.marianhello.react.BackgroundGeolocationModule.onHostDestroy(BackgroundGeolocationModule.java:105)
at com.facebook.react.bridge.ReactContext.onHostDestroy(ReactContext.java:205)
at com.facebook.react.XReactInstanceManagerImpl.moveToBeforeCreateLifecycleState(XReactInstanceManagerImpl.java:607)
at com.facebook.react.XReactInstanceManagerImpl.onHostDestroy(XReactInstanceManagerImpl.java:539)
at com.facebook.react.XReactInstanceManagerImpl.onHostDestroy(XReactInstanceManagerImpl.java:546)
at com.facebook.react.ReactActivityDelegate.onDestroy(ReactActivityDelegate.java:128)
at com.facebook.react.ReactActivity.onDestroy(ReactActivity.java:72)
at android.app.Activity.performDestroy(Activity.java:5403)
at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1117)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3483)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3514)
at android.app.ActivityThread.access$1400(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1261)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5105)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:790)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:606)
at dalvik.system.NativeStart.main(Native Method)
from react-native-background-geolocation.
Notice: this issue has been closed because it has been inactive for 228 days. You may reopen this issue if it has been closed in error.
from react-native-background-geolocation.
I am still getting this error, did anyone find any solution ?
PS: i am on RN49
from react-native-background-geolocation.
same issue
from react-native-background-geolocation.
Related Issues (20)
- Foreground service notification appears with delay 10s in Android 12 (SDK 31) HOT 2
- invalid null provider error on start HOT 1
- FAILURE: Build completed with 2 failures. after installation of module HOT 3
- Build Failed while using this package. Sometimes it works fine but sometime the build fails HOT 4
- Context.startForegroundService() did not then call Service.startForeground() HOT 3
- The time interval is not working properly. I want to get a call in 10 minutes
- Could not find ::. Required by: project :app HOT 7
- Getting error running the project after installing the library HOT 5
- SDK 31 - Android 12 specify an explicit value for `android:exported` HOT 13
- No variants found for ':mauron85_react-native-background-geolocation'. Check build files to ensure at least one variant exists.
- Execution failed for task ':@mauron85_react-native-background-geolocation-common:compileDebugJavaWithJavac'. HOT 11
- '/Volumes/Untitled2/projects/agrigator/project/node_modules/@mauron85/react-native-background-geolocation/android/lib/build.gradle' line: 62
- Getting issue in fetching location when device screen is locked Android HOT 7
- Error build android: Could not resolve all files for configuration HOT 1
- :@hariks789_react-native-background-geolocation-common:compileReleaseJavaWithJavac'. > Compilation failed; see the compiler error output for details. HOT 7
- Whether support Android without Google Play Service installed
- Task :@mauron85_react-native-background-geolocation:generateDebugBuildConfig FAILED
- Not working in Android 12, API 31 and above HOT 3
- Not working on IOS 17.5.1
- ### Build Failure due to Deprecated `package` Attribute in AndroidManifest.xml
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-background-geolocation.