Hi there,
everything was working yesterday.
Do you have any idea about this :
This happens when I try to run android --device.
I also check my files using nativegeocoder
In the constructor :
The import :
In my function :
/*
This function will get the location by using the native location option on the smartphone.
It will return the current position from the latitude and longitude variables.
The result will be : Address, City, Postal Code and Country.
*/
private getLocation() {
// Get the current latitude & longitude if the Location option is enable on the device
this.geolocation.getCurrentPosition()
.then((resp) => {
this.position = {
// Create latitude (lat) and longitude (lng) variables with the location informations
lat: resp.coords.latitude,
lng: resp.coords.longitude
};
this.nativeGeocoder.reverseGeocode(this.position.lat, this.position.lng)
.then((result: NativeGeocoderReverseResult) =>
{
// Put the result of the GeocoderReverse in the fullAddress variable
this.fullAddress = result;
// Put all the parameters in one
this.addressString = result.street + ', ' + result.city + ' ' + result.postalCode + ', ' + result.countryName;
})
.catch((error: any) => alert(error));
})
.catch((error) => {
alert('getLocation error\n' + JSON.stringify(error));
})
}
Iâm a bit stressed about that, I need it to work shortly⌠please help.
Thanks in advance guys