Ionic Capacitor native google geolocation show wrong app name

Hi,
I’m using Ionic 5 and Capacitor 3. I try to use native geolocation. When app run on IOS device, it’s show the wrong app name

image

I try to load static image maps. This is my native geolocation code.

this.nativeGeolocation.getCurrentPosition({ enableHighAccuracy: true }).then((position) => {
      this.lat = position.coords.latitude;
      this.lng = position.coords.longitude;

      this.staticUrl = 'https://maps.googleapis.com/maps/api/staticmap?key=' +
        environment.googleMapsAPIKey +
        '&markers=color:F03B68%7C' + this.lat + ',' + this.lng + '&size=800x600&zoom=18';
    }).catch((err: any) => {
      alert(JSON.stringify(err));
    });

I already add this in my plist.

<key>NSLocationAlwaysUsageDescription</key>
<string>Your location is used to provide accurate coordinate of your position.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Your location is used to provide accurate coordinate of your position.</string>

Can someone explain to me what happens? Or did someone experience this too?
Thank You!

The code looks like you are not using Capacitor plugin. This is ionic native library which uses cordova plugin. Since it cannot find the cordova plugin, falls back to webview geolocation method. Hence you see capacitor://localhost

You can look at capacitor geolocation usage from:

Okay, working on ur solution.