ios – Creating custom authorization message

Question:

Is there any way to customize the authorization message for requestWhenInUseAuthorization and requestAlwaysAuthorization ?

I know that for this to work we have to add in info.plist information NSLocationWhenInUseUsageDescription and NSLocationAlwaysUsageDescription .

But I wanted to build a custom alertview for my app instead of using the default alertview .

Answer:

No, you cannot customize the iOS native message to ask for location authorizations.

What I suggest you do is create this UIAlertView with the message you want and show it before requestWhenInUseAuthorization or requestAlwaysAuthorization , however both alerts will be displayed.

Scroll to Top