12-10-2017 20:55
12-10-2017 20:55
My clock needs location data but doesn't have to be accurate. I am setting the PositionOptions like so:
var gpsOptions = { enableHighAccuracy: false, maximumAge: Infinity };
geolocation.getCurrentPosition(locationSuccess, locationError, gpsOptions);Whenever I load the clock during development, it's always taking a new GPS reading (looking at the position timestamp) and takes a good bit of time (30-45 seconds). Subsequent calls seem to return the cached value. This might be by design, or might be a bug. Just wanted to verify behavior -- makes initial load of the clock much slower.
Best Answer01-09-2018 13:06
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
01-09-2018 13:06
You may want to persist the last reading yourself, or request the GPS location from the companion while you're waiting.
Best Answer