From 89f60e894b251b1f693bbaeda4408237aa383106 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 18 Mar 2026 20:16:16 +0000 Subject: [PATCH] Fix geolocation on iOS Safari: explicit button + error feedback MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace silent on-load getCurrentPosition with an opt-in button on step 1. iOS Safari requires a user gesture for the permission prompt to appear; calling it on page load suppresses the dialog. The button triggers the request on tap, shows "Getting location…" while waiting, and surfaces permission-denied / timeout errors with clear messages. https://claude.ai/code/session_015myTTMs6yDsAGarATe5ePZ --- templates/index.html | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/templates/index.html b/templates/index.html index 2b5127c..2637cc6 100644 --- a/templates/index.html +++ b/templates/index.html @@ -158,11 +158,27 @@