cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Nightingale (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-10338) getCurrentPosition() hangs on Android 4.2.2
Date Wed, 13 Jan 2016 23:48:39 GMT

    [ https://issues.apache.org/jira/browse/CB-10338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15097301#comment-15097301
] 

Tom Nightingale edited comment on CB-10338 at 1/13/16 11:47 PM:
----------------------------------------------------------------

FWIW This platform/plugin combo runs fine on a Nexus 9 running Android 6.0.1:
- android@5.0.0
- cordova-plugin-crosswalk-webview@1.4.0
- cordova-plugin-geolocation@2.0.0

But *not* on Android 4.2.2 (at least with the specific device that I am using).

I'll give it a shot without Crosswalk when I'm back at my desk.


was (Author: tom@tnightingale.com):
FWIW This platform/plugin combo runs fine on a Nexus 9 running Android 6.0.1:
- android@5.0.0
- cordova-plugin-crosswalk-webview@1.4.0
- cordova-plugin-geolocation@2.0.0

But *not* on Android 4.2.2 (at least with the specific device that I am using).

> getCurrentPosition() hangs on Android 4.2.2 
> --------------------------------------------
>
>                 Key: CB-10338
>                 URL: https://issues.apache.org/jira/browse/CB-10338
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Geolocation
>    Affects Versions: 2.0.0
>         Environment: Android 4.2.2 (running cordova-android@5.0.0)
>            Reporter: Tom Nightingale
>              Labels: android, reproduced, triaged
>
> Neither success or error callbacks are called after calling navigator.geolocation.getCurrentPosition().
> Stepping through the plugin with Chrome's Javascript debugger and Android Studio's Java
debugger shows that the plugin's shim code successfully executes the Geolocation 'getPermission'
check and returns back to fire the shim's success handler (line 31 [here|https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-geolocation.git;a=blob;f=www/android/geolocation.js;h=82e3582e0c225340db44add8fe3ea81256dff03f;hb=57eb4dc550a3d88d3ebbb60a0d6a83d61f898dd7#l31]).
> However the next line which appears to call the platform's native getCurrentPosition()
just hangs; neither the provided success or error callbacks are called. If I try step into
that function call with the Chrome remote debugger it just jumps to the end of the executing
function (line 36 @ above link). It's as if getCurrentPosition() is a no-op. Chrome's "show
function definition" functionality isn't able to resolve the definition either.
> I wonder if the bug is somewhere in the cordova/modulemapper code? This is an area of
Cordova I am not familiar with...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message