Android Question How to enable location in webview?

JohnC

Expert
Licensed User
Longtime User
I created an app that simply navigates a webview control to the below address:

https://fact.alpinesystemsinc.com

On that page is a "location" button that will center the displayed map on your location.

If you manually navigate to the above URL using chrome and click the "Location" button, chrome will prompt you "Do you wish to allow alpinesystemsinc.com to know your location?", and when I can click "yes" and the map properly centers on my location.

But when my B4A app displays that page in a webview, if you click the "location" button, nothing happens.

How can I get the location feature to properly work in the webview?
 
Last edited:

JohnC

Expert
Licensed User
Longtime User
That is probably the fix - I'll give it a shot. Thanks.
 
Upvote 0

JohnC

Expert
Licensed User
Longtime User
That worked! Thanks.
 
Upvote 0
Top