It’s been working well, but suddenly it has error code 3 which is timeout…
Im totally don’t know why this is happen there are all things in config.xml about permission…
I checked it on web and real device, emulator.
android 6.0
gps turned on.
let options={timeout:10000,maximumAge :10000,enableHighAccuracy:true}
this.geo.getCurrentPosition(options).then(resp=>{
let lat=resp.coords.latitude;
let lng=resp.coords.longitude;
this.starting.next(lat);
this.ending.next(lng);
let location=new google.maps.LatLng(lat,lng);
this.map.panTo(location);
loading.dismiss();
}).catch((error =>{
//position error 발생시 다시 위치 추척
console.log("error ! : "+error)
loading.dismiss();
}))
})
return locationObs
}