PhoneGap的地理位置,code 3 - 超时过期不断某些Android设备上弹出弹出、地理位置、设备、PhoneGap

由网友(挥精如土)分享简介:我使用的地理定位API的PhoneGap。我已经设置了enableHighAccuracy选项为true。 code 3,超时过期的选项保持雨后春笋般冒出来,但仅限于某些Android设备,并不止一次在使用应用程序。I am using the PhoneGap API for geolocation. I have...

我使用的地理定位API的PhoneGap。我已经设置了enableHighAccuracy选项为true。 code 3,超时过期的选项保持雨后春笋般冒出来,但仅限于某些Android设备,并不止一次在使用应用程序。

I am using the PhoneGap API for geolocation. I have set the enableHighAccuracy Option to "true". Code 3, time out expired option keeps popping up, but only on some android devices and more than once while using the application.

请帮我...为什么会这样,它只能在某些Android设备出现故障。如果我设置精度为false,多少差异将我得到的检索坐标...

Please help me... Why is this so that it fails only on some android devices. If I set the accuracy to false, how much difference will I get in retrieving the coordinates...

推荐答案

设法解决了我的问题与下面的code:

Managed to resolve my issue with the code below:

var options = {maximumAge: 0, timeout: 10000, enableHighAccuracy:true};
navigator.geolocation.getCurrentPosition(onSuccess, onError, options);

看来,三星Galaxy手机不喜欢缓存GPS位置。

It seems that samsung galaxy phones do not like to cache the gps location.

阅读全文

相关推荐

最新文章