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 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.
Did you enable the geolocation permission in package.json?
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.
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