I have been using @capacitor/geolocation succesfully in Ionic 6. But recently I updated to Ionic 7. Now I’m experiencing problems with Geolocation.GetCurrentPosition(). Half the time I get following error: ‘Could not obtain location in time. Try with a higher timeout.’. Can anyone tell me why this is happing?
1 Like
We experience the same. Like there was a cooldown before you can request the location again, and if you request it sooner, it times out with this.
I see the same issue. Has anyone found a fix?
Not really a fix, but I just upped the timeout:
Geolocation.getCurrentPosition({enableHighAccuracy: true, timeout: 20000})