[Ionic Native Geolocation] What is wrong with Ionic Native Geolocation

Hi, Im using latest Ionic Native Geolocation from https://github.com/apache/cordova-plugin-geolocation and latest version of ionic,cordova etc. everything updated. But when i run geolocation on my device i got error “Error getting location{}”. Im getting position after click button so app is full loaded, but when i use background Background Geolocation its work. I read all topics about this error but no changes. I even tried Capacitor.

    this.geolocation.getCurrentPosition({ maximumAge: 3000, timeout: 5000, enableHighAccuracy: true }).then((resp) => {
      console.log(resp);
     }).catch((error) => {
       console.log('Error getting location', JSON.stringify(error));
     });
1 Like

i´m having the same problem! any solution to yours?