Hi,
I'm going to be mad. ;) My implementation looks like:
navigator.geolocation.getCurrentPosition(
function(position) {
...
},
function(error) {
...
}, { // GPS configuration
"enableHighAccuracy": false,
"timeout": 5000 * 1000,
"maximumAge": Infinity
}
);
whereas I tried a lot of GPS configuration variants having a short or long timeout, a concret maximumAge or enableHighAccuracy set to true. Also I set the privilege for getting the tizen location (sorry can't include it, because links in topics are forbitten) and in addition the location.gps feature in the config.xml file.
My S3 gear is flashed to the new Tizen 4.0 version rolled out last month. Be sure that GPS is enabled in the S3 Gear settings. The really great app "here" works fine/ without any problem and finds direct the correct location.
But my implementation always runs in the error function and reports first a POSITION_UNAVAILABLE and afterwards a TIMEOUT PositionError. Until now I didn't get any location testing inside or outside. :(
Reading the documentation
enableHighAccuracy When enabled, use GPS only to improve the location accuracy. When disabled, use both GPS and WPS. Enabling it may result in slower response times or increased power consumption. Default: false
timeout The maximum length of time (expressed in milliseconds) that is allowed to pass from the call to getCurrentPosition() until the corresponding successCallback is invoked. The maximum allowed value is 120. Default: 120
maximumAge Sets to return a cached position whose age is no greater than the specified time in milliseconds. If maximumAge is set to 0, a new position object is acquired immediately. Default: 0
I'm a little bit surprised that the max allowed timeout is 120 millisecs? Maybe it's the delay for my first POSITION_UNAVAILABLE error? And after 5000*1000 millisecs I get the real timeout?
Please help! What is my mistake, what I'm doing wrong?
Best regards Holger