Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8157217B9D for ; Fri, 29 Jan 2016 17:50:54 +0000 (UTC) Received: (qmail 64089 invoked by uid 500); 29 Jan 2016 17:50:44 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 64044 invoked by uid 500); 29 Jan 2016 17:50:44 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 64031 invoked by uid 99); 29 Jan 2016 17:50:44 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jan 2016 17:50:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D5CF91A01D8 for ; Fri, 29 Jan 2016 17:50:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.899 X-Spam-Level: ** X-Spam-Status: No, score=2.899 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id sUq0UP40nM26 for ; Fri, 29 Jan 2016 17:50:37 +0000 (UTC) Received: from mail-qg0-f53.google.com (mail-qg0-f53.google.com [209.85.192.53]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 9984D31AC0 for ; Fri, 29 Jan 2016 17:50:36 +0000 (UTC) Received: by mail-qg0-f53.google.com with SMTP id b35so71145260qge.0 for ; Fri, 29 Jan 2016 09:50:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4AWwQnl2Rcq8rbysOsgG/v9OLGB/18nxgT2qBqrTcwI=; b=UsZ3dXPaAMm1sNYE528SWpjLDCemTgPUCitv1gAgpqrinl8c1s1EovvUd8v4Ua/TJM 3ZIde551g/ACj1P2rcJN8jvJJ2cgy9ZxIO8WHO3NoWdVjHTFVTGO76BMGCjX/ujkxBDV ZAiSRZYHaaMMIxca2tseQNWmCIRaYaUQIf3ksaJb4PKS//Oi8XEkeIh7vwPbufDxdqod 3UQkN4ICiJiOaCu9uzX7te5c1kNKQpx3A+bWgSi56yd4I/nFFFtFSx8Zcu7ifNP6Mrpr d2dWigyP5J3DLoEJY8CouTDBiHZROV2qq0HYoRP3h/Xcx67tY92l1HrcC/4nKlSffdS2 mqEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=4AWwQnl2Rcq8rbysOsgG/v9OLGB/18nxgT2qBqrTcwI=; b=JlYdSbbcmfO86jl6OD2TFogcb13xBft5QBc5z4CJFXi5Vri3zPDrhXMpL6rvE9cA0S hsbk2XaTGNv1e2D+j80IwXaHg9iaZDxLCqDpgW+2Zboa/G3AcHW8WE4dJKpexn/qOVVO i9BoEr8rSAEDappv/aEjwRp+4ZFFAUmdqkaXfE7zU65mQN1znH1vPVJiR90rF2rWpi0t 4THcRuDMAu2PSPbVnL1+uflr7p5e/yLWCaq8M1lFJ1lF3iwhvNav7h7UiCHWa3xIARfm IF3wGq1a5lQEA/QFQv/x9GS1e3TuIFLsXU9dE9deG6V2PxSkS07ws2ObRH9g675t9QNy V3zw== X-Gm-Message-State: AG10YOTyburMir4zfcQ3Xsgk9vMLGuaFKYT0mT2bvTCv2NcU4LLdLzvwavNOQWwa/UP1s7g807vVOMk4jLdgIw== MIME-Version: 1.0 X-Received: by 10.140.147.11 with SMTP id 11mr13167494qht.93.1454089835645; Fri, 29 Jan 2016 09:50:35 -0800 (PST) Received: by 10.140.28.53 with HTTP; Fri, 29 Jan 2016 09:50:35 -0800 (PST) In-Reply-To: References: Date: Fri, 29 Jan 2016 18:50:35 +0100 Message-ID: Subject: Re: geolocation getCurrentPosition and disabled location services From: julio cesar sanchez To: "dev@cordova.apache.org" Content-Type: multipart/alternative; boundary=001a11376ba4200f72052a7caca8 --001a11376ba4200f72052a7caca8 Content-Type: text/plain; charset=UTF-8 It's not really an API to force the dialog, it's just how the CLLocationManager works if you try to use it when the location services are not enabled (not the app permissions, the whole device location). Anyway, I've been doing some tests, and it will only show the dialog twice, it doesn't matter if you press "settings" or "cancel" on the dialog, the third time you launch the app with the location services disabled, the dialog won't appear again, so I don't think it's really helpful to add this "feature". 2016-01-29 17:28 GMT+01:00 Carlos Santana : > I see so there is an API to force the OS dialog? > > it would be another option in geolocationOptions, and would be only and iOS > Quirk type of thing. > > I think we decided that moving forward that we should stay away of > implementing things for a single platform. > > > > > On Fri, Jan 29, 2016 at 10:14 AM julio cesar sanchez < > jcesarmobile@gmail.com> > wrote: > > > Carlos, the message he is talking about is a system message, so we don't > > have to worry about how it works or the message it has to show. > > It's displayed automatically when you call [self.locationManager > > startUpdatingLocation]; and the geolocation services are turned off, but > > the current implementation of the plugin doesn't call > [self.locationManager > > startUpdatingLocation]; if the permissions are turned off. > > > > Bad thing is geolocation plugin follows the W3C API, and I don't see any > > way of adding this option without "breaking" the API > > > > 2016-01-29 14:18 GMT+01:00 Carlos Santana : > > > > > Thanks for opening the JIRA that says a lot about your interest to > help. > > > But my opinion the request is for a specific implementation related to > > > UI/UX, then what would the dialog say and how to handle language etc... > > > > > > This is the reason in core Cordova we try to stay away from providing > > > specific UI implementations > > > > > > Also there is no native iOS API to open settings app in the specific > > > section of Location Services that I'm aware. There are some APIs to go > > the > > > your app section but not the location services. > > > > > > I would consider the use case be concern of Dev space how to handle the > > > UI/UX when our current API returns with permission denied > > > On Fri, Jan 29, 2016 at 7:07 AM Zarko Hristovski > > wrote: > > > > > > > Thanks. > > > > > > > > Created CB-10478 (getCurrentPosition should trigger system dialog for > > > > enabling location services): > > > > https://issues.apache.org/jira/browse/CB-10478 > > > > > > > > It's a feature request, so fingers crossed. > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org > > > > For additional commands, e-mail: dev-help@cordova.apache.org > > > > > > > > > > > > > > --001a11376ba4200f72052a7caca8--