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 8889910772 for ; Wed, 7 Aug 2013 08:21:49 +0000 (UTC) Received: (qmail 51371 invoked by uid 500); 7 Aug 2013 08:21:49 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 51326 invoked by uid 500); 7 Aug 2013 08:21:49 -0000 Mailing-List: contact issues-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 issues@cordova.apache.org Received: (qmail 51314 invoked by uid 99); 7 Aug 2013 08:21:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Aug 2013 08:21:48 +0000 Date: Wed, 7 Aug 2013 08:21:48 +0000 (UTC) From: "Vladimir Riha (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-4521) Geolocation plugin timeouts on Android device with Cordova 3.0.X 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-4521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13731763#comment-13731763 ] Vladimir Riha commented on CB-4521: ----------------------------------- Sorry I skipped more information: - when the watchPosition() is called, I see Android GPS icon and it is trying to fix position. In Android settings, I've allowed applications to use GPS and also wifi/3g to get position information - navigator.geolocation.getCurrentPosition() has the same problem > Geolocation plugin timeouts on Android device with Cordova 3.0.X > ---------------------------------------------------------------- > > Key: CB-4521 > URL: https://issues.apache.org/jira/browse/CB-4521 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Geolocation > Affects Versions: 3.0.0 > Environment: Device: Galaxy Nexus 4.3 Stock > PC: Ubuntu 12.04 32b > Reporter: Vladimir Riha > Assignee: Steve Gill > > Geolocation fails on Android device with "Position retrieval timeout" message. I'm trying to use it like: > locationWatchId = window.navigator.geolocation.watchPosition(callback, onFail, {maximumAge: 10000, timeout: 10000, enableHighAccuracy: true}); > I've tried to double maximumAge and timeout and no change. The very same works with I build the project with PhoneGap 2.8.1. Here are the steps I'm doing with Cordova 3.0.1: > cordova create hello com.example.hello HelloWorld > cd hello/ > cordova platform add android > cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git > ... adding more plugin... > cordova build > cordova run android > The same works on iPad. I started thread [1] about it and one other user has the same problem with Cordova 3.0.4 > [1] https://groups.google.com/forum/?hl=en%3Fhl%3Den#!topic/phonegap/MP2eLY11Rlg -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira