Change location permissions notification text in iOS

Many iOS apps that use geolocation cause invalid permission-based resolution:

“Application X will want to use your location. Confirm it is OK,” and the user can confirm or not enable it or leave it turned off.

How can you edit the text inside this notice? (in xCode)

NOTE. I'm not talking about bold confirmation text - where the only variable is the name of the application, and the lighter text UNDERNEATH the bold text "X APP would like to use your location" and the ABOVE confirmation button. I have seen custom text posted here in some applications.

I sincerely appreciate any ideas

+5
source share
1 answer

There is a CLLocationManager property - the @property target is NSString. Install this after instantiating your CLLocationManager. This is displayed when your application requests permission to use the location.

You can install it as follows:

CLLocationManager *locMgr = [[CLLocationManager alloc] init];
[locMgr setPurpose:@"State your purpose here"];

This will appear under bold in the permission warning.

+8
source

All Articles