You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: replace getCurrentPosition with watchPosition for iOS Safari
iOS Safari re-prompts geolocation permission on every getCurrentPosition
call after a page reload. Replace the getCurrentPosition + setInterval
pattern with watchPosition which triggers only one permission prompt and
continuously delivers updates.
Also guard navigator.permissions.query() which is unsupported on iOS
Safari, and add error callbacks for permission denied, position
unavailable, and timeout scenarios.
0 commit comments