[
https://issues.apache.org/jira/browse/CB-9289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15073577#comment-15073577
]
Sergey Grebnov commented on CB-9289:
------------------------------------
Can't reproduce using the following code. After I turn geolocation service off
or on I correctly receive timeout error or my location. Alessandro, please
re-open this issue with more detailed repro steps if this is still actual.
{code}
var onSuccess = function(position) {
alert('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) {
alert('code: ' + error.code + '\n' +
'message: ' + error.message + '\n');
}
navigator.geolocation.getCurrentPosition(onSuccess, onError, {timeout: 10000});
{code}
> No Coordinate without gps on Android
> ------------------------------------
>
> Key: CB-9289
> URL: https://issues.apache.org/jira/browse/CB-9289
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Geolocation
> Affects Versions: 4.3.0
> Reporter: Alessandro
> Labels: android, triaged
>
> I'm trying this plugin on andoird device and when I try it with active gps I
> receive the coordinate when I try it without gps I receive timeout. I
> increase the time out but I receive the same error furthermore without
> connection I receive timeout.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]