cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-8523) enableHighAccuracy: false doesn't work on iOS
Date Sat, 28 Feb 2015 10:34:04 GMT


ASF GitHub Bot commented on CB-8523:

GitHub user tisztamo opened a pull request:

    Fixed enableHighAccuracy: false on iOS

    Fix of the bug described in

You can merge this pull request into a Git repository by running:

    $ git pull master

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #39
commit 8872c73dbd917cb10bc3ae32953a95113a84438e
Author: Schaffer Krisztian <>
Date:   2015-02-26T21:50:03Z

    Fixed enableHighAccuracy: false on iOS


> enableHighAccuracy: false doesn't work on iOS
> ---------------------------------------------
>                 Key: CB-8523
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Geolocation
>            Reporter: Krisztián Schäffer
> According to my tests and to what I see in the source the GPS is almost always used even
when enableHighAccuracy is set to false.
> The w3 spec says ( ) about enableHighAccuracy
> "The intended purpose of this attribute is to allow applications to inform the implementation
that they do not require high accuracy geolocation fixes and, therefore, the implementation
can avoid using geolocation providers that consume a significant amount of power (e.g. GPS)."
> But the plugin uses kCLLocationAccuracyNearestTenMeters which is not a good choice for
implementing that. There is hardly a low-power (non-GPS) method available which can provide
10 meters accuracy.
> The TODO comment also says that this is "arbitrary":
> I suggest using kCLLocationAccuracyThreeKilometers. Any other constant will lead to GPS
usage in rural environments when the wifi is off.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message