Request location coordinates after user has blocked access in javascript

后端 未结 2 402
时光说笑
时光说笑 2021-01-17 14:52

How can I prompt a user for their geo-location in javascript if they\'ve blocked my request in the past? (using navigator.geolocation.getCurrentPosition).

For exampl

2条回答
  •  盖世英雄少女心
    2021-01-17 15:23

    You can't.

    The user must manage their browser settings manually because your site is added to a blacklist when denied location permissions.

    Here are instructions for Chrome users to manage their location permissions: https://support.google.com/chrome/answer/142065?hl=en

提交回复
热议问题