# Permissions location ios ":// would like to use your current location"

**URL:** <https://forum.ionicframework.com/t/permissions-location-ios-would-like-to-use-your-current-location/227603>\
**Category:** Ionic Native\
**Created:** [October 12, 2022, 3:30am UTC](https://forum.ionicframework.com/t/permissions-location-ios-would-like-to-use-your-current-location/227603 "2022-10-12T03:30:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![santiago\_vasquez06](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/santiago_vasquez06/32/112047_2.png) [@santiago\_vasquez06](https://forum.ionicframework.com/u/santiago_vasquez06)\
**Post date:** [October 12, 2022, 3:30am UTC](https://forum.ionicframework.com/t/permissions-location-ios-would-like-to-use-your-current-location/227603/1 "2022-10-12T03:30:45Z")

</div>

Hello every one, I want change the name in the dialog that ios show me. the text say:

**“:// Would like to use your current location”**

also Why show me this name the app **://**?

 ![image](https://global.discourse-cdn.com/ionicframework/original/3X/6/e/6e3a7640070d10f432fbfe4fcb8ca55ea88620e5.jpeg)

I know that alert is required by ios. But I only want to change the text and I don’t get results successfully

I already add in the Info.plis the next keys:

- NSLocationWhenInUseUsageDescription
- NSLocationAlwaysUsageDescription
- NSLocationAlwaysAndWhenInUseUsageDescription
- NSLocationUsageDescription

and I still don’t get the expected result

Any help thanks !!

---

<div class="post-metadata">

**Author:** ![julio-ionic](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@julio-ionic](https://forum.ionicframework.com/u/julio-ionic)\
**Post date:** [October 12, 2022, 5:46pm UTC](https://forum.ionicframework.com/t/permissions-location-ios-would-like-to-use-your-current-location/227603/2 "2022-10-12T17:46:54Z")

</div>

Are you using Cordova or Capacitor?  
Are you using cordova-plugin-geolocation plugin or using navigator.geolocation directly?

---

<div class="post-metadata">

**Author:** ![santiago\_vasquez06](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/santiago_vasquez06/32/112047_2.png) [@santiago\_vasquez06](https://forum.ionicframework.com/u/santiago_vasquez06)\
**Post date:** [October 13, 2022, 7:32pm UTC](https://forum.ionicframework.com/t/permissions-location-ios-would-like-to-use-your-current-location/227603/3 "2022-10-13T19:32:52Z")

</div>

I am using Cordova with the plugin: cordova-plugin-geolocation and also I get the location with this plugin. And never I use navigator.geolocation

---

<div class="post-metadata">

**Author:** ![julio-ionic](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@julio-ionic](https://forum.ionicframework.com/u/julio-ionic)\
**Post date:** [October 14, 2022, 8:12am UTC](https://forum.ionicframework.com/t/permissions-location-ios-would-like-to-use-your-current-location/227603/4 "2022-10-14T08:12:53Z")

</div>

Make sure you are not using the plugin until devicready event is fired.  
Also make sure you have cordova.js linked in your index.html

Those are two things that could cause the web prompt to appear instead of the native prompt.

---

<div class="post-metadata">

**Author:** ![santiago\_vasquez06](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/santiago_vasquez06/32/112047_2.png) [@santiago\_vasquez06](https://forum.ionicframework.com/u/santiago_vasquez06)\
**Post date:** [October 17, 2022, 4:15pm UTC](https://forum.ionicframework.com/t/permissions-location-ios-would-like-to-use-your-current-location/227603/5 "2022-10-17T16:15:27Z")

</div>

Julio thanks for your answer, it helped me a lot, to find the problem.  
Just add the @ionic-native/geolocation plugin on the Ready platform.  
And the alert did not come out again.

---

<div class="post-metadata">

**Author:** ![amal850720](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@amal850720](https://forum.ionicframework.com/u/amal850720)\
**Post date:** [January 31, 2023, 4:17am UTC](https://forum.ionicframework.com/t/permissions-location-ios-would-like-to-use-your-current-location/227603/6 "2023-01-31T04:17:03Z")

</div>

Hi @santiago_vasquez06. I’m facing the same problem too, but the app name is just “://”.  
I’m using @ionic-native/geolocation and had it declared, but the error still comes out. Anything that I might have missed?

---

<div class="post-metadata">

**Author:** ![santiago\_vasquez06](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/santiago_vasquez06/32/112047_2.png) [@santiago\_vasquez06](https://forum.ionicframework.com/u/santiago_vasquez06)\
**Post date:** [January 31, 2023, 6:49am UTC](https://forum.ionicframework.com/t/permissions-location-ios-would-like-to-use-your-current-location/227603/7 "2023-01-31T06:49:36Z")

</div>

Try calling the method to get the location when the platform is ready, like this:

```auto
  this.platform.ready().then(e => {
    this.GetLocation();
  });

```

I am using:  
` @ionic-native/background-geolocation`

---

<div class="post-metadata">

**Author:** ![amal850720](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@amal850720](https://forum.ionicframework.com/u/amal850720)\
**Post date:** [February 3, 2023, 3:33am UTC](https://forum.ionicframework.com/t/permissions-location-ios-would-like-to-use-your-current-location/227603/8 "2023-02-03T03:33:32Z")

</div>

This is the plugin I’m using:

`import { Geolocation } from '@ionic-native/geolocation/ngx';`

This is the implementation:

```auto
  async googleMap() {
    const loading = await this.loadingCtrl.create({
      message: 'Loading Map...',
    });
    loading.present();
    this.geolocation
      .getCurrentPosition()
      .then((resp) => {
        this.latitude = resp.coords.latitude;
        this.longitude = resp.coords.longitude;

        const latLng = new google.maps.LatLng(
          resp.coords.latitude,
          resp.coords.longitude
        );
        const mapOptions = {
          center: latLng,
          zoom: 15,
          mapTypeId: google.maps.MapTypeId.ROADMAP,
          mapTypeControl: false,
          zoomControl: false,
          scaleControl: false,
          streetViewControl: false,
          fullscreenControl: false,
        };

        this.getAddressFromCoords(
          resp.coords.latitude,
          resp.coords.longitude,
          ''
        );

        this.map = new google.maps.Map(
          this.mapElement.nativeElement,
          mapOptions
        );

        loading.dismiss();
        this.addMarker();

        this.map.addListener('drag', () => {
          this.latitude = this.map.center.lat();
          this.longitude = this.map.center.lng();
          this.myMarker.setPosition(this.map.getCenter());
          this.infoWindow.close();
        });

        this.map.addListener('dragend', () => {
          this.getAddressFromCoords(
            this.map.center.lat(),
            this.map.center.lng(),
            latLng
          );
        });
      })
      .catch((error) => {
        console.log('Error getting location:', error);
      });
  }

```

I’ve wrapped this in this.platofrm.ready, but the same error still comes out (:// would like to use your location) on iOS. On Android, it worked well.
