DannyMoerkerke / whatpwacando.today

Repo to collect bugs for https://whatpwacando.today/
537 stars 7 forks source link

Wrong iOS steps to re-enable Geolocation permission denied #57

Open marcelmenezes opened 2 months ago

marcelmenezes commented 2 months ago

On iPhone 13, iOS 17.5.1: Currently on your PWA app, the steps shown to the user to follow for a "geolocation error" are incorrectly placed as: Settings > Privacy & Security > Enable location services > Safari Websites > Allow location access: "While Using the App"

But the steps for a previously "User Denied" geolocation permission, must be actually one of following:

  1. Open the PWA website in Safari
  2. Click on "aA" icon (on the left side of the Safari address bar)
  3. Website Settings
  4. Location
  5. Select "Allow"
  6. Done

OR a longer route:

  1. iOS Settings
  2. Safari
  3. Location
  4. Is there an entry for whatpwacando.today? If yes, then open it, and Select "Allow". If no, go to the next step.
  5. On Location > "OTHER WEBSITES", Select "Ask".
  6. Exit Settings.
  7. Close you PWA App, and reopen it.
  8. Inside PWA, Request the Geolocation again, and allow it.
WhatsApp Image 2024-07-08 at 17 41 18_9264ecda
DannyMoerkerke commented 2 months ago

The steps described in the dialog are the correct ones and on my iPhone (also 13 and iOS17.5.1) these steps are the only way to enable geolocation when this has been set to "Never" for Safari websites.

When this is the case, I'm not able to enable location with the two ways you describe. In both cases, "Ask" is already chosen but permission remains denied until I change this in Settings > Privacy & Security > Enable location services > Safari Websites > Allow location access.

DannyMoerkerke commented 2 months ago

Ah, I see now that the dialog is also shown when the user denies permission. In that way, I'm also not able to enable location permission in the ways you describe but the dialog then does give the wrong information.

I'll see how I can prevent it from showing in that case, thanks.