6

I am looking for a way in which i can display a custom message when the geolocation script asks for the user to either allow or deny access to their location.

At the moment it displays a message asking weather the user wants to allow or deny access to their location. Instead of it saying the default "Allow website.com to access your location" I want to be able to change it to my own text such as "Allow location access to display better results".

I will look forward to your responses.

1 Answers1

6

This cannot be done. Otherwise a user may not know what it is that they might be agreeing to. There is no guarantee a custom message would need to even mention location at all.

Andy Newman
  • 281
  • 3
  • 3
  • 8
    It would be nice that you could add a custom message below or above the default message (which should be mandatory, for the reason you give). This way the user would know why the site is requesting location. – Ferran Maylinch Jul 29 '16 at 10:25