11-22-2017 04:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


11-22-2017 04:02
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.

Accepted Solutions
11-22-2017 05:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


11-22-2017 05:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Did you enable the geolocation permission in package.json?

11-22-2017 04:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


11-22-2017 04:56
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Sorry for the premature request. This has been solved, found the "Uses Location" checkbox in the dev tool

11-22-2017 05:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


11-22-2017 05:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Did you enable the geolocation permission in package.json?

04-27-2019 18:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-27-2019 18:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I use iOS. There isn’t dev tools. I have the privacy location set on for Fitbit but I still get the error.

