Contents

containerAppLaunchActivityType

The user activity type sent to the container app.

Declaration

static let containerAppLaunchActivityType: String

Discussion

This string is the value of the activityType of the NSUserActivity sent by the framework when it launches the container app, following a request from the app extension for sign-in or other information. Container apps should validate that the user activity received by onContinueUserActivity(_:perform:) (SwiftUI) or application(_:continue:restorationHandler:) (UIKit) matches this string. If it does, then the user activity’s userInfo dictionary contains a request id. The container app sends the request id to returnToCall(requestID:) after it completes logging in or collecting the other needed information from the person using the service.

Your container app also needs to include this string in the app’s information property list, as a member of the NSUserActivityTypes array.

See Also

Responding to a container app launch