In runtime for the following code, it says :
Error:
Property ‘getCurrentPosition’ does not exist on type ‘typeof Geolocation’.
private getCurrentPosition(maximumAge: number = 10000): Promise<Coordinates> {
const options = {
timeout: 10000,
enableHighAccuracy: true,
maximumAge
};
return Geolocation.getCurrentPosition(options).then((pos: Geoposition) => {
return pos.coords;
});
}