[
https://issues.apache.org/jira/browse/CB-7875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14188521#comment-14188521
]
thomas fischer commented on CB-7875:
------------------------------------
I will continue my monologue :)
Based on: "geolocation.watchPosition is an asynchronous function. It returns
the device's current position when a change in position has been detected. When
the device has retrieved a new location, the geolocationSuccess callback is
invoked with a Position object as the parameter. If there is an error, the
geolocationError callback is invoked with a PositionError object."
I suppose that the cordova plugin throw an error when the position returned is
the same, after the TimeOut delay.
But I noticed that the W3C API is not throwing an error in that same case.
So it may be helpful to save battery life, when the user is in the subway but
what if the user is just in a stationary position for looking is way.
And if I set a timeout on infinity, I will not know when the gps lost signal
and notify the use ?
> 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
>
> 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]