Custom message for geolocation

佐手、 提交于 2019-12-07 02:53:32

问题


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:


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.



来源:https://stackoverflow.com/questions/31837670/custom-message-for-geolocation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!