Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48980

Ionic Capacitor native google geolocation show wrong app name

$
0
0

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!

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48980

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>