You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/02/05 17:13:11 UTC
[GitHub] rashnk edited a comment on issue #139: Location does not turn on
rashnk edited a comment on issue #139: Location does not turn on
URL: https://github.com/apache/cordova-plugin-geolocation/issues/139#issuecomment-460721528
```
cordova.plugins.locationAccuracy.request(
function() {
console.log("testhigh success");
setTimeout(function() {
getPosition();
}, 1500);
},
function() {
console.log("error");
},
cordova.plugins.locationAccuracy.REQUEST_PRIORITY_HIGH_ACCURACY
);
function getPosition() {
navigator.geolocation.getCurrentPosition(
function(position) {
var latitude = position.coords.latitude;
var longitude = position.coords.longitude;
}
)
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org