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 Answer
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.