[ 
https://issues.apache.org/jira/browse/CB-7875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15082767#comment-15082767
 ] 

Sergey Grebnov commented on CB-7875:
------------------------------------

Looks like this has been fixed in version 0.3.11

https://github.com/apache/cordova-plugin-geolocation/commit/55194aab45a17335e7bc581c3ce031c5311991f9

I'm testing master using iPhone 5 OSX 9.2 and callbacks continue to trigger 
after error callback.

{code}
function onSuccess(position) {
    console.log("Success...");
}

function onFailure(error) {
    console.log("Failed..." + JSON.stringify(error));
}
        
navigator.geolocation.watchPosition(onSuccess , onFailure, { maximumAge: 5000, 
timeout: 5000, enableHighAccuracy: true });
{code}

{code}
2016-01-05 13:00:13.984 HelloCordova[866:608727] Success...
2016-01-05 13:00:13.986 HelloCordova[866:608727] Success...
2016-01-05 13:00:13.989 HelloCordova[866:608727] Success...
2016-01-05 13:00:13.997 HelloCordova[866:608727] Success...
2016-01-05 13:00:14.186 HelloCordova[866:608727] Success...
2016-01-05 13:00:14.191 HelloCordova[866:608727] Success...
2016-01-05 13:00:14.301 HelloCordova[866:608727] Success...
2016-01-05 13:00:19.310 HelloCordova[866:608727] 
Failed...{"code":3,"message":"Position retrieval timed out."}
2016-01-05 13:00:42.849 HelloCordova[866:608727] Success...
2016-01-05 13:00:47.853 HelloCordova[866:608727] 
Failed...{"code":3,"message":"Position retrieval timed out."}
2016-01-05 13:00:52.350 HelloCordova[866:608727] Success...
2016-01-05 13:00:53.351 HelloCordova[866:608727] Success...
2016-01-05 13:00:54.354 HelloCordova[866:608727] Success...
{code}

> watchPosition Timeout Error 3
> -----------------------------
>
>                 Key: CB-7875
>                 URL: https://issues.apache.org/jira/browse/CB-7875
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Geolocation
>         Environment: cordova-cli version 4.0.0
> cordova-plugin-geolocation: 0.3.10
> xCode 6
> IOS7 - IOS8
>            Reporter: thomas fischer
>              Labels: ios, triaged
>
> Using the cordova-plugin-geolocation: 0.3.10, I have a timeout error with 
> watchPosition. (error.code3)
> When i uninstall this plugin and use geolocation with the W3C API I have no 
> problem of timeout, but it's not working on IOS8 due to the new Location 
> Authorization



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to