-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
API: GeolocationBugHelp Wanted
Issues ideal for external contributors.Issues ideal for external contributors.Platform: AndroidAndroid applications.Android applications.Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
Developing an Android app, whilst debugging on my Android Device running on 6.1, the geolocation api always returns an error callback with the message Location request timed out
.
navigator.geolocation.getCurrentPosition(
(position) => {
console.log(position);
},
(error) => {
console.log(error)
},
{enableHighAccuracy: true, timeout: 20000, maximumAge: 10000}
);
If I toggle enableHighAccuracy option to false, the api works fine. In high accuracy mode, the timeout always takes as long as I specify in the timeout option i.e. 20 seconds.
I've tried running with dev mode turned off.
Should high accuracy mode work in Android?
ColinEberhardt, tststs, joaquinnunez, sibelius, diniscm and 149 moreproserve, Shhzdmrz, bife1, rimiti, mafelix and 5 moredev-reactnative, Shhzdmrz, bife1, rimiti, mafelix and 5 more
Metadata
Metadata
Assignees
Labels
API: GeolocationBugHelp Wanted
Issues ideal for external contributors.Issues ideal for external contributors.Platform: AndroidAndroid applications.Android applications.Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.