Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 62EDE18D3D for ; Tue, 5 Jan 2016 06:35:40 +0000 (UTC) Received: (qmail 2743 invoked by uid 500); 5 Jan 2016 06:35:40 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 2720 invoked by uid 500); 5 Jan 2016 06:35:40 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 2705 invoked by uid 99); 5 Jan 2016 06:35:39 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jan 2016 06:35:39 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C59842C14F4 for ; Tue, 5 Jan 2016 06:35:39 +0000 (UTC) Date: Tue, 5 Jan 2016 06:35:39 +0000 (UTC) From: "Sergey Grebnov (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CB-8523) enableHighAccuracy: false doesn't work on iOS MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-8523?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Grebnov resolved CB-8523. -------------------------------- Resolution: Fixed > 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=C3=A1n Sch=C3=A4ffer > Labels: Triaged, ios > > According to my tests and to what I see in the source the GPS is almost a= lways used even when enableHighAccuracy is set to false. > The w3 spec says ( http://dev.w3.org/geo/api/spec-source.html#high-accura= cy ) about enableHighAccuracy that: > "The intended purpose of this attribute is to allow applications to infor= m the implementation that they do not require high accuracy geolocation fix= es 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 go= od choice for implementing that. There is hardly a low-power (non-GPS) meth= od available which can provide 10 meters accuracy. > The TODO comment also says that this is "arbitrary": https://github.com/a= pache/cordova-plugin-geolocation/blob/master/src/ios/CDVLocation.m#L156 > I suggest using kCLLocationAccuracyThreeKilometers. Any other constant wi= ll 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