Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
3.0.0
-
None
-
None
-
Device: Galaxy Nexus 4.3 Stock
PC: Ubuntu 12.04 32b
Description
Geolocation fails on Android device with "Position retrieval timeout" message. I'm trying to use it like:
locationWatchId = window.navigator.geolocation.watchPosition(callback, onFail, {maximumAge: 10000, timeout: 10000, enableHighAccuracy: true});
I've tried to double maximumAge and timeout and no change. The very same works with I build the project with PhoneGap 2.8.1. Here are the steps I'm doing with Cordova 3.0.1:
cordova create hello com.example.hello HelloWorld cd hello/ cordova platform add android cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git ... adding more plugin... cordova build cordova run android
The same works on iPad. I started thread [1] about it and one other user has the same problem with Cordova 3.0.4
[1] https://groups.google.com/forum/?hl=en%3Fhl%3Den#!topic/phonegap/MP2eLY11Rlg