System-provided permission request alert?

Hi.
Where do I add custom text to the system-provided permission request alert.

Thx

Søren Møller

Game Absorber

Replies

Probably in the app's -Info.plist.

Some system alerts pick up a 'reason' for the alert and add it to the message. That reason is added as a field in the info.plist.


For example:

https://developer.apple.com/documentation/photokit/phphotolibrary/1620736-requestauthorization?language=objc

Your app’s

Info.plist
file must provide a value for the NSPhotoLibraryUsageDescriptionkey that explains to the user why your app is requesting Photos access. Apps linked on or after iOS 10.0 will crash if this key is not present.

It sounds like you're asking about access to the different classes of a user's private data. The Privacy Prompts sample demonstrates how to configure and request access for each of the different types of private data.