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
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