Which Devices Support Javascript Geolocation via navigator.geolocation?

前端 未结 7 2143
没有蜡笔的小新
没有蜡笔的小新 2020-11-29 00:28

The iPhone supports geolocation in mobile Safari via the following call:

navigator.geolocation.getCurrentPosition(
  function(pos){
    var lat = pos.coords.         


        
7条回答
  •  旧巷少年郎
    2020-11-29 00:58

    I know this is an old question, but you'll find a list of devices that support geolocation here: http://www.quirksmode.org/webkit.html. This list is being maintained by the site author so it should stay up to date.

提交回复
热议问题