Custom message for geolocation

2019-05-04 18:02发布

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条回答
神经病院院长
2楼-- · 2019-05-04 18:41

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.

查看更多
登录 后发表回答