Contents

Accessory Transport Extension

Transfer data securely to connected accessories that you develop.

Overview

Use the Accessory Transport Extension framework to securely transfer information to an accessory that you develop. First, establish a connection with your accessory using AccessorySetupKit. Then, you can share Wi-Fi networks with your accessory using Wi-Fi Infrastructure, or forward iOS system notifications to your accessory using Accessory Notifications.

For information about automatic routing of audio to accessories, see AudioAccessoryKit.

Share a Wi-Fi network with an accessory

Implement the AccessoryTransportAppExtension protocol in an extension to share Wi-Fi networks with your accessory. The system calls your extension’s accept(sessionRequest:) method when it’s ready to start. After accepting the session request, your extension connects to the accessory using ASAccessorySession and delivers Wi-Fi network data using WINetworkSharingProvider.

Forward iOS system notifications to an accessory

Using the Accessory Transport Extension framework with Accessory Notifications, your app can receive iOS system notifications to send alerts to people on a connected accessory that you develop. The workflow requires three extensions to maintain security and encapsulation. Implement AccessoryDataProvider to receive and curate the content of a given notification. The system encrypts the notification data using keys you provide in your AccessoryTransportSecurity extension. Then, the system delivers the encrypted data to your AccessoryTransportAppExtension for transmission to the accessory. Your transport extension sends the encrypted data to your accessory, but is unable to decipher the notification’s content.

Topics

Wi-Fi network sharing

Notification forwarding

Data and sessions

Protocols