когда я вызываю геолокацию для currentlocation. Я сталкиваюсь с такой ошибкой
TypeError: Object(...) is not a function
at Geolocation.getCurrentPosition
import { Geolocation } from '@ionic-native/geolocation/ngx';
constructor(public geolocation:Geolocation ){}
this.geolocation.getCurrentPosition().then((resp) => {
// resp.coords.latitude
// resp.coords.longitude
}).catch((error) => {
console.log('Error getting location', error);
});