11-22-2017 04:02
11-22-2017 04:02
I have iphone settings for fitbit app to ALWAYS and am using the below in a companion app but still get the error:
Error: 1 Message: User denied Geolocation
Code being used:
import { geolocation } from "geolocation"; geolocation.getCurrentPosition(locationSuccess, locationError); function locationSuccess(position) { console.log("Latitude: " + position.coords.latitude, "Longitude: " + position.coords.longitude); } function locationError(error) { console.log("Error: " + error.code, "Message: " + error.message); }
Answered! Go to the Best Answer.
Best Answer11-22-2017 05:27
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.
11-22-2017 05:27
Did you enable the geolocation permission in package.json?
Best Answer11-22-2017 04:56
11-22-2017 04:56
Sorry for the premature request. This has been solved, found the "Uses Location" checkbox in the dev tool
Best Answer11-22-2017 05:27
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.
11-22-2017 05:27
Did you enable the geolocation permission in package.json?
Best Answer04-27-2019 18:17
04-27-2019 18:17
I use iOS. There isn’t dev tools. I have the privacy location set on for Fitbit but I still get the error.
Best Answer