getCurrentPosition in JS does not work on iOS

后端 未结 4 904
孤街浪徒
孤街浪徒 2021-01-18 01:48

I have a page that contains a code that gets the current location from the device and load other stuff based on the location with this code:

if (navigator.ge         


        
4条回答
  •  旧时难觅i
    2021-01-18 02:17

    I just encountered the same issue. The simple answer is to ask the user, to give the permission to your browser in

    Settings > Privacy > Location Services.
    

提交回复
热议问题