import { Geolocation } from '@ionic-native/geolocation';
constructor(public geolocation: Geolocation){}
getCoords(){
this.geolocation.getCurrentPosition().then((result) => {
if (result != null) {
this.obPoint.longitude = result.coords.longitude;
this.obPoint.latitude = result.coords.latitude;
console.log(result);
}
this.refreshData();
}).catch(err=>{
console.log(err);
});
}
I am running Android version 7
I have tried changing the options, but it still does not work.
My manifest file is also correct.