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

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 :// ?

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

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

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

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.

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.