Creating a custimized authorization message

Asked

Viewed 92 times

3

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

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

But I wanted to ride a alertview customized for my app instead of using the alertview pattern.

1 answer

1


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

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.