You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/01/05 07:34:39 UTC
[jira] [Commented] (CB-8523) enableHighAccuracy: false doesn't work
on iOS
[ https://issues.apache.org/jira/browse/CB-8523?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15082497#comment-15082497 ]
ASF subversion and git services commented on CB-8523:
-----------------------------------------------------
Commit 2134d2b89d386069a4844a13bf5807ed2416e518 in cordova-plugin-geolocation's branch refs/heads/master from Schaffer Krisztian
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-geolocation.git;h=2134d2b ]
CB-8523 Fixed accuracy when enableHighAccuracy: false on iOS. This closes #39
> enableHighAccuracy: false doesn't work on iOS
> ---------------------------------------------
>
> Key: CB-8523
> URL: https://issues.apache.org/jira/browse/CB-8523
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Geolocation
> Reporter: Krisztián Schäffer
> Labels: Triaged, ios
>
> 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 ( http://dev.w3.org/geo/api/spec-source.html#high-accuracy ) about enableHighAccuracy that:
> "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": https://github.com/apache/cordova-plugin-geolocation/blob/master/src/ios/CDVLocation.m#L156
> 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
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org