Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F4207C78F for ; Mon, 11 Jun 2012 23:30:42 +0000 (UTC) Received: (qmail 52316 invoked by uid 500); 11 Jun 2012 23:30:42 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 52236 invoked by uid 500); 11 Jun 2012 23:30:42 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 52227 invoked by uid 99); 11 Jun 2012 23:30:42 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2012 23:30:42 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 96A881402B5 for ; Mon, 11 Jun 2012 23:30:42 +0000 (UTC) Date: Mon, 11 Jun 2012 23:30:42 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <2040646020.4703.1339457442621.JavaMail.jiratomcat@issues-vm> In-Reply-To: <150255578.51446.1339133063333.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Resolved] (CB-884) Geolocation does not work properly on iOS 4 and below MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazron Abdullah resolved CB-884. --------------------------------- Resolution: Invalid I just tried it on a iOS 4.2.1 device - it works. There is a bug in the iPhone 4.x simulator and Lion, this is precisely what you encountered with the "location services are disabled" error: http://stackoverflow.com/questions/6794377/xcode-4-1-location-prompt-in-iphone-simulator > Geolocation does not work properly on iOS 4 and below > ----------------------------------------------------- > > Key: CB-884 > URL: https://issues.apache.org/jira/browse/CB-884 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > Affects Versions: 1.0.0, 1.1.0, 1.2.0, 1.6.0, 1.7.0 > Environment: iPod Touch, iPhone 4 > Reporter: Aaron Hii > Assignee: Shazron Abdullah > Priority: Minor > Labels: geolocation, gps > > {{navigator.geolocation.getCurrentPosition}} does not work on iOS 4.3 and below, but works perfectly fine on iOS 5 and Android. Location service and WIFI were enabled on device but returned location update failed. > function onSuccess() { console.log('location acquired'); } > function onFailure() { console.log('location not found'); } > navigator.geolocation.getCurrentPosition(onSuccess, onFailure, { enableHighAccuracy: true }); -- 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