navigator.geolocation not work in Android 4.1.2, soulution
- navigator.geolocation.getCurrentPosition(onGeoLocateSuccess,
- onGeoLocateError,
- {
- enableHighAccuracy : false,
- maximumAge : 0,
- timeout : 7000
- });
-->change to:
- navigator.geolocation.getCurrentPosition(onGeoLocateSuccess,
- onGeoLocateError,
- {
- enableHighAccuracy : true,
- maximumAge : 3000,
- timeout : 60000
- });
make sure enableHighAccuracy is enabled.
沒有留言:
張貼留言
注意:只有此網誌的成員可以留言。