Get Lat/Lon using built in GPS or WiFi

Get Lat/Lon using built in GPS or WiFi

BY 25 Mar 2017 Web Application Development

I’ve developer an app for my Gear Fit2 watch that displays my currnt Lat/Lon. (Gear Fit 2 has a bulit in GPS, WiFi and Bluetooth.)

 navigator.geolocation.getCurrentPosition(successCallback, errorCallback, {maximumAge: 60000}); 

 

The apps works fine when watch is connected to phone via Bluetooth. However it doesn’t work when bluetooth is off, even though GPS and WiFi are turned-on on the watch!

Any idea how to get app working without a connection to phone?

Thanks!

Written by