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 EE293D8AF for ; Tue, 28 Aug 2012 15:41:09 +0000 (UTC) Received: (qmail 88710 invoked by uid 500); 28 Aug 2012 15:41:09 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 88672 invoked by uid 500); 28 Aug 2012 15:41:09 -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 88664 invoked by uid 99); 28 Aug 2012 15:41:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Aug 2012 15:41:09 +0000 Date: Wed, 29 Aug 2012 02:41:09 +1100 (NCT) From: "Mr. Extreme (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1823143906.6738.1346168469725.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (CB-1288) position.timestamp.getTime() fails on iOS, ok on Android MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Mr. Extreme created CB-1288: ------------------------------- Summary: position.timestamp.getTime() fails on iOS, ok on Android Key: CB-1288 URL: https://issues.apache.org/jira/browse/CB-1288 Project: Apache Cordova Issue Type: Bug Components: iOS Affects Versions: 2.0.0 Reporter: Mr. Extreme Assignee: Shazron Abdullah Take this piece of code: {code:javascript} gpsWatchId = navigator.geolocation.watchPosition( function( position ) // success { positionTimestamp = position.timestamp.getTime(); } // don't forget the rest of the code {code} position.timestamp will be a Date object on Android, so even alert( position.timestamp ) works. On iOS 5, it causes the JS engine to fall over with some fatal error, rendering the whole app useless. You have to replace the code with your own "x = new Date; y = x.getTime();" code. If I saw correctly position.timestamp is non-existent on iOS. -- 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