【发布时间】:2013-06-25 06:15:32
【问题描述】:
这段代码:
navigator.geolocation.getCurrentPosition(
function(position) {
alert(position.coords.latitude, position.coords.longitude);
},
function(error){
alert(error.message);
}, {
enableHighAccuracy: true
,timeout : 5000
}
);
https://jsfiddle.net/FcRpM/ 在我的笔记本电脑上的 Google Chrome 中工作,但在移动 HTC one S 上(安卓 4.1,GPS 关闭,通过移动网络定位并启用 wifi),通过 WiFi 连接到互联网。
- 默认浏览器工作正常。
- 适用于 Android 的 Google Chrome、Opera、Yandex.browser 失败并显示“超时已过期”。
其他 android 应用程序正确定位我。
【问题讨论】:
-
在我的 HTC one S 上也有同样的问题。我看到这里有报道:code.google.com/p/chromium/issues/detail?id=175909
标签: javascript android html google-chrome geolocation