phonegap geolocation always fail on timeout

前端 未结 11 733
遥遥无期
遥遥无期 2020-12-06 01:06

I\'m using sencha-touch 2.0 and phonegap 2.0.0 in my app to retrieve user\'s location. When runing on my locahost, everything works just fine. However, when loading the .apk

11条回答
  •  生来不讨喜
    2020-12-06 01:21

    You just need to add enableHighAccuracy: true, maximumAge: 60000 and then reboot your device.

提交回复
热议问题