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

Location not available for Android #345

Open
sanghyun5958 opened this issue Mar 3, 2020 · 6 comments
Open

Location not available for Android #345

sanghyun5958 opened this issue Mar 3, 2020 · 6 comments

Comments

@sanghyun5958
Copy link

sanghyun5958 commented Mar 3, 2020

I tried to use nativescript-geolocation plugin together.. but not working

@mikelavigne
Copy link

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__)

@Yermo
Copy link
Owner

Yermo commented Jun 22, 2020

Android geolocation should be working. See doGetUserLocation in the demo.

@mikelavigne
Copy link

mikelavigne commented Jun 22, 2020

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.

@Yermo
Copy link
Owner

Yermo commented Jun 22, 2020

Do you need geolocation data when the app is in the background?

@mikelavigne
Copy link

mikelavigne commented Jun 22, 2020

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.

@Yermo
Copy link
Owner

Yermo commented Jun 22, 2020

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.

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

3 participants