IOS 15 Geolocation Permission message

Hi All,

Need your support to fix the below issue.

In my app, I am using the below plugin for geolocation, When the plugin asking for current permission getting “ionic://localhost” in header.

Plugin : GitHub - apache/cordova-plugin-geolocation: Apache Cordova Plugin geolocation
Version: “cordova-plugin-geolocation”: “^4.0.2”,
@ionic-native/geolocation”: “^5.26.0”,


Anyone else facing the same issue on IOS 15?



same here, please someone help

On my app I don’t see the popup if I reinstall and reauthorize on IOS 15, only saw it after upgrading to IOS 15 and opening my app previously installed on IOS 14.
That would be great to at least be able to put the app name on the dialog.

Are you using the latest cordova-geolocation plugin? Sound like some permission have changed and either the plugin or cordova-ios needs to be udated.

Yes, We are using the latest plugin and latest ionic version facing issue in IOS 15 only.

Does anyone found any solution to hide that prompt on IOS 15 ?

Any updates on this, i have the issue as well and dont see anything coming from cordova-ios

Not sure on the status of this as it would most likely be an issue on the cordova side of things.

Worth pointing out that this is not an issue in Capacitor…

Thanks, while we have started the transition to capacitor we still have a few apps on angular/cordova. I will continue the search on the cordova forums thanks

I’m using capacitor and my app have the same problem when it uses the navigator.geolocation API.

I am using mapboxgl and when this library uses the geolocation I see the “:// Would Like To Use Your Current Location” propmt.

You can reproduce it using
navigator.geolocation.getCurrentPosition((response) => { });
in any capacitor app. And because of it I think is a capacitor configuration problem.

In my info.playlist I have the config
Es necesario activar la ubicación del dispositivo para poder usar Gronze Maps 2
Es necesario activar la ubicación del dispositivo para poder usar Gronze Maps 1

There is any solution?

That’s how the WebView prompt for geolocation permission looks like, if you want to use navigator.geolocation API, the only way of having a native prompt is to use cordova-plugin-geolocation as it overwrites navigator.geolocation object to use native code.

Or you can use @capacitor/geolocation plugin to request the permission before showing the mapbox map as if it’s granted navigator.geolocation shouldn’t ask again.