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 EB77111095 for ; Mon, 11 Aug 2014 09:38:13 +0000 (UTC) Received: (qmail 15442 invoked by uid 500); 11 Aug 2014 09:38:12 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 15405 invoked by uid 500); 11 Aug 2014 09:38:12 -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 15001 invoked by uid 99); 11 Aug 2014 09:38:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Aug 2014 09:38:12 +0000 Date: Mon, 11 Aug 2014 09:38:12 +0000 (UTC) From: "nicolas Sagon (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-7283) Wp8 cordova geolocation problem MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 nicolas Sagon created CB-7283: --------------------------------- Summary: Wp8 cordova geolocation problem Key: CB-7283 URL: https://issues.apache.org/jira/browse/CB-7283 Project: Apache Cordova Issue Type: Bug Components: WP8 Affects Versions: 3.5.0 Environment: Wp 8.1 / windows x64 8.1 Reporter: nicolas Sagon Assignee: Jesse MacFadyen I have a workfull application on android an iphone build with phonegap 3.5 In this application i use a watchPosition and it's work on android and iPhone. But now i want to use my application on a WP8.1 device. So i have add the platform to my project and build it (works fine) but the watchPosition always return an empty position : function startGeolocation() { if (navigator.geolocation) { stopGeolocation(); // au cas ou deja lance mbdGlobal.geolocationWatchIdHighAccuracy = navigator.geolocation.watchPosition( function (position) { alert("Position : " + JSON.stringify(position)); mbdGlobal.lastMyPosition = position; }, // next function is the error callback function (error) { displayGeolocationErrorMessage(error, 'GPS') }, { enableHighAccuracy: true } ); } else // finish the error checking if the client is not compliant with the spec { alertWebapp(strMessageNotCompatible + "(geolocation)"); } } My alert display : Position : {}; I don't understand why in WP8 this doesn't work. I have add the ID_CAP_LOCATION on my app. Plz if you know why it's doesn't work tell me. Thanks you for all your answers. edit : I also made a test app with the geoloc plugin and it's the same issue doesn't work. -- This message was sent by Atlassian JIRA (v6.2#6252)