bradmartin/nativescript-advanced-webview

Use location in webview

Closed this issue · 4 comments

Is it possible for to use geolocation in an advanced webview? If so could you direct me to a resource that shows how?

Thanks.

Great, thanks for the quick response. Since we have control of the web content we need to display, and we only need the location on load, I will probably go with a solution that involves sending the location in the URL.

@vcooley
Could you solve this problem?.
I was trying something similar, i have a webpage and i try to access to the localization througth html5 geolocalization api (navigator.geolocalization). But never showed the prompt to permissions.

@CristianHCol I ended up solving my problem by just sending the latitude and longitude in the query params. You'll have to request the location from the phone using the nativescript-geolocation plugin.