This sample repository is a reproduction of Capacitor Issue #3789.
The method getCurrentPosition
times out from the iOS native side if the user does not complete the permission prompt (either accepting or denying Geolocation permission) within an indeterminate amount of time (appears to be a few seconds).
Relevant code can be found in /src/ExploreContainer.tsx
. For test purposes, the Geolocation timeout
option has been set to 10 seconds.
A "workaround" is in place where the user can retry a failed attempt by providing a button that calls Geolocation.getCurrentPosition
.