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

Sergey Grebnov commented on CB-9210:
------------------------------------

Just tested on Android 5.1.1 (Galaxy S5) and unit tests pass. Also tested 
manually, the following code traces new location every few seconds

{code}
var onSuccess = function(position) {
    console.log('Latitude: '          + position.coords.latitude          + 
'\n' +
          'Longitude: '         + position.coords.longitude         + '\n' +
          'Altitude: '          + position.coords.altitude          + '\n' +
          'Accuracy: '          + position.coords.accuracy          + '\n' +
          'Altitude Accuracy: ' + position.coords.altitudeAccuracy  + '\n' +
          'Heading: '           + position.coords.heading           + '\n' +
          'Speed: '             + position.coords.speed             + '\n' +
          'Timestamp: '         + position.timestamp                + '\n');
};

// onError Callback receives a PositionError object
//
function onError(error) {
    console.log('code: '    + error.code    + '\n' +
          'message: ' + error.message + '\n');
}

var watchId = navigator.geolocation.watchPosition(onSuccess, onError);
{code}

> Geolocation tests aren't passing on Android L
> ---------------------------------------------
>
>                 Key: CB-9210
>                 URL: https://issues.apache.org/jira/browse/CB-9210
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Geolocation
>            Reporter: Steve Gill
>              Labels: android, triaged
>
> They pass fine on my older Android. Need to look into what is going on. 
> Testing on HTC one M8.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to