I had a similar issue some time ago, posted a thread about it.
The issue seems to be on Google's side.
Assuming, that you are using the Geolocation object correctly and it still fails, here is a workaround:
- Add an AJAX object to your project
- When you need the geolocation, use the AJAX action "Request URL" with this url:
"https://maps.googleapis.com/maps/api/browserlocation/json?browser=chromium&sensor=true"
- When that request completes, AJAX.LastData will return a JSON file looking approx. like this:
You should be able to go from here.
For me, this currently only works when previewing or exporting to NW.js.
Don't know about you though.