[
https://issues.apache.org/jira/browse/CB-509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267064#comment-13267064
]
Hugo commented on CB-509:
-------------------------
Most likely same root cause, but the same symptoms occur when simply using
getCurrentPosition() to get a single fix. Once the GPS kicks in, the only way
to get it to stop is to suspend the app...unless your app registers for
background location updates, in which case your batteries will be out in ~5hrs
(ugh!!).
> geolocation.clearWatch doesn't shut the GPS down under iOS
> ----------------------------------------------------------
>
> Key: CB-509
> URL: https://issues.apache.org/jira/browse/CB-509
> Project: Apache Callback
> Issue Type: Bug
> Components: iOS
> Affects Versions: 1.6.0
> Reporter: Andrea Zicchetti
> Assignee: Shazron Abdullah
> Priority: Critical
> Labels: CDVLocation, battery, clearWatch, gps, shutdown,
> stopLocation
> Fix For: 1.8.0
>
> Attachments: CDVLocationShim.zip
>
> Original Estimate: 0.5h
> Remaining Estimate: 0.5h
>
> Calling navigator.geolocation.clearWatch doesn't shut the GPS down.
> It's no longer possible to manually invoke geolocation.stop() (and thus the
> corresponding stopLocation function in CDVLocation), which was a temporary
> solution with previous phonegap/cordova versions.
> It's quite a problem because an application using the GPS even for a short
> amount of time will completely drain the battery in a few hours.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira