You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sergey Grebnov (JIRA)" <ji...@apache.org> on 2015/12/29 12:05:49 UTC
[jira] [Commented] (CB-9210) Geolocation tests aren't passing on
Android L
[ 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org