Home:ALL Converter>How does iOS Safari determine when to show the location services dialog?

How does iOS Safari determine when to show the location services dialog?

Ask Time:2016-12-14T23:07:44         Author:Leftium

Json Formatter

How does iOS Safari determine when to show the location services dialog? It seems if the user grants permission twice for a given domain, the choice is cached (just on that device). For how long? Are two denials also cached?

  • Has the algorithm changed between versions of iOS? (On a version of iOS before 10.1.1, I always gave google.com permission, but I kept getting prompted every time I visited.)
  • Is the algorithm different when the mobile app supports "save to home screen?" (And is started from the home screen)

Background info:

When a web app requests the user's location, iOS first prompts the user for permission. An example of this is on google.com when "Use precise location" at the bottom is tapped.

This question is similar, but there are no answers, yet: How does mobile safari determine when to prompt user to share location?

Author:Leftium,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/41145852/how-does-ios-safari-determine-when-to-show-the-location-services-dialog
yy