-
Notifications
You must be signed in to change notification settings - Fork 94
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
Location not available for Android #345
Comments
Same problem. tns add nativescript-geolocation results in an error with nativescript-mapbox plugin. Error: java.lang.UnsatisfiedLinkError: No implementation found for void com.mapbox.mapboxsdk.net.NativeConnectivityListener.initialize() (tried Java_com_mapbox_mapboxsdk_net_NativeConnectivityListener_initialize and Java_com_mapbox_mapboxsdk_net_NativeConnectivityListener_initialize__) |
Android geolocation should be working. See doGetUserLocation in the demo. |
Thanks for your reply. I my situation, I need to have access to the geolocation even if no map is displayed so I get the conflict when I try to display the map. I found this issue that might be related. The doGetUserLocation in the demo is only using mapbox solution for geolocation. For now I downgraded my nativescript-mapbox package to an old version (4.3.1) and the map displays fine even with the nativescript-geolocation plugin on. |
Do you need geolocation data when the app is in the background? |
No, the app will always be opened. There are various ways around this issue like I could update my location service from mapbox when map is displayed and from the native plugin when it's not, but that would not be very clean for a fix and since both plugins are very popular, I tought it would be better to look into the issue itself. |
I need to package up and release my background geolocation plugin which works nicely with this plugin, but i agree that the nativescript-geolocation foreground plugin should work. Unfortunately, I don't have the spare cycles to look into it right now but I will be happy to accept a pull request if you can figure out fix. |
I tried to use nativescript-geolocation plugin together.. but not working
The text was updated successfully, but these errors were encountered: