AccessorySetupKit / Wi-Fi Aware example?

Greetings,

According to Apple's Wi-Fi Aware documentation (https://developer.apple.com/documentation/wifiaware) the Wi-Fi Aware APIs can be used only with peer devices that have been paired. Pairing can be performed using AccessorySetupKit or DeviceDiscoveryUI.

Unfortunately, the sample code for Wi-Fi Aware doesn't include either of these APIs. (https://developer.apple.com/documentation/wifiaware/building-peer-to-peer-apps)

Looking at the sample code for AccessorySetupKit (https://developer.apple.com/documentation/accessorysetupkit/setting-up-and-authorizing-a-bluetooth-accessory) there is only an example using Bluetooth. And the AccessorySetupKit APIs don't yet document how Wi-Fi Aware is used or how one sets up the Info.plist with the appropriate keys.

Can Apple update its example code to fill in these gaps or point me to documentation that can fill in these gaps? It is hard to develop an understanding of the capabilities of these APIs when they are so poorly documented.

Thanks for any help,

Smith

Can Apple update its example code to fill in these gaps … ?

If you want to see improvements in the sample code, I recommend that you make it official by filing an enhancement request. Please post your bug number, just for the record.

Having said that, it’s tricky to create sample code for this scenario because:

  • Developers expect to be able to run sample code.
  • But such a sample would be tied to a specific accessory.

In the meantime, I have a couple of random notes:

  • It’s well worth watching WWDC 2025 Session 228 Supercharge device connectivity with Wi-Fi Aware, which covers both the device-to-device and device-to-accessory cases.
  • The Accessory Design Guidelines for Apple Devices, available from Developer > Accessories, has a Wi-Fi Aware section that outlines Apple’s requirements in this space.
  • I’m not tracking the accessory side of this in great detail, so I’m not sure how well this works out in practice.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

AccessorySetupKit / Wi-Fi Aware example?
 
 
Q