ripple-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Barham (JIRA)" <>
Subject [jira] [Commented] (RIPPLE-74) ripple does not pass geolocation info to app
Date Wed, 06 May 2015 05:19:00 GMT


Tim Barham commented on RIPPLE-74:

I've taken a look at this, and the issue is two-fold.

First, for the Android platform, the geolocation plugin no longer patches navigator.geolocation
- it simply lets it fall through to the platform implementation. So Ripple's logic for intercepting
cordova.exec doesn't catch this even when the plugin is installed. If you switch Ripple to
a device that uses a different Cordova platform (like an iOS device, for example), then Ripple's
geolocation emulation works (provided the plugin is installed).

The second part of the problem is that Ripple actually patches navigator.geolocation directly
- it is suppoed to work even if the plugin is not installed. However, that logic is fails
- Ripple sets window.navigator directly, which doesn't work. I have a fix which I'll check
in shortly.

> ripple does not pass geolocation info to app
> --------------------------------------------
>                 Key: RIPPLE-74
>                 URL:
>             Project: Apache Ripple
>          Issue Type: Bug
>         Environment: Win7, i7 hardware, Chrome Version 37.0.2062.124 m
>            Reporter: Peter Lindstrom
> my app utilizes navigator.geolocation.getCurrentPosition(placemarks_geolocation_callback()
but regardless of what i enter in the ripple geolocation settings this call only returns my
local geo coordinates.

This message was sent by Atlassian JIRA

View raw message