requestForwarding(for:)
Requests permission to forward notifications and Live Activities to the specified accessory.
Declaration
func requestForwarding(for accessory: ASAccessory) async throws -> ForwardingDecisionParameters
- accessory:
An accessory object that Accessorysetupkit provides when your companion app registers the accessory.
Discussion
This method prompts the person to select which apps on their device can forward notifications and Live Activities to your accessory. The person can choose all apps, some apps, no apps, or dismiss the prompt. This method throws AccessoryError.unsupportedPlatform if called on an unsupported device; call this method on iPhone only.