Which Devices Support Javascript Geolocation via navigator.geolocation?

前端 未结 7 2144
没有蜡笔的小新
没有蜡笔的小新 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:52

    The W3C version works on android 2.*. On android 1.6 you can fallback to gears, which will work pretty much the same way. In theory the W3C standard should also work on Firefox mobile (Fennec), which currently is available for Nokia's Maemo devices and will be standard on MeeGo.

提交回复
热议问题