Contents

currentAgeExceptionRequests()

Returns a list of requests to install apps that exceed the maximum allowed age rating for the device.

Declaration

nonisolated final func currentAgeExceptionRequests() async throws -> [AppLibrary.ExceptionRequest]

Mentioned in

Discussion

When a person attempts to install an app with an age rating that exceeds the maximum allowed for the device, the framework presents a sheet that enables the person to request an exception from a parent or guardian. When the person proceeds with the request, the framework adds an instance of AppLibrary.ExceptionRequest for the app to this list.

The parent or guardian reviews the request in Messages on their device, or in person on the originating device, by responding to a system-provided sheet. After the parent or guardian makes a decision, the framework removes the app’s AppLibrary.ExceptionRequest from this list.

Keep the person informed of the status of the current exception requests. For example, if the exception status is AppLibrary.ExceptionRequest.Status.pending, you can show a Pending label in place of an Install button for the associated app.

For more information, see Providing age-rating appropriate content.

See Also

Checking for age-rating based content restrictions