Расскажи про AccessorySetupKit
Generated on 8/6/2024
1 search
AccessorySetupKit is a new framework introduced by Apple at WWDC 2024, designed to streamline and enhance the setup experience for Bluetooth and WiFi accessories in iOS 18 and iPadOS 18. Here are the key points about AccessorySetupKit:
-
Streamlined Setup: AccessorySetupKit simplifies the process of pairing accessories with your app. With just one tap, the accessory is paired, granting your app both Bluetooth and WiFi access. This reduces friction during the initial setup, making it easier for users to get started with their accessories.
-
Privacy-Friendly Design: The accessory picker, which is used to select and pair accessories, runs in a separate process from your app. This design ensures that the setup process is privacy-friendly. Your app sends discovery rules and assets to the picker process, which can be configured for both Bluetooth and WiFi interfaces.
-
Enhanced User Control: Users can easily identify accessories through the accessory picker, which displays the friendly name and product image of the accessory. They can also modify the accessory name, toggle access for paired apps, or remove the accessory from the system.
-
API Integration: To use AccessorySetupKit, developers need to add specific entries to the app's info plist, such as Bluetooth and WiFi under accessory setup kit support. The framework handles the discovery and authorization of accessories, while communication is managed using Core Bluetooth and Network Extension.
-
Migration of Existing Accessories: If your app already manages accessories using system access, you can migrate these accessories to AccessorySetupKit. This is done using migration display items, which allow existing accessories to be found in the new accessory settings.
-
Design Recommendations: Apple provides guidelines to ensure that accessory images look sharp and are well-presented in both light and dark modes. The accessory picker offers a container box of 180 by 120 points to house the product image.
For a detailed overview and to see how to implement AccessorySetupKit in your app, you can watch the session Meet AccessorySetupKit (00:02:49).
Meet AccessorySetupKit
Elevate your accessory setup experience with AccessorySetupKit. Display a beautiful pairing dialog with an image of your Bluetooth or Wi-Fi accessory — no trip to the Settings app required. Discover how to improve privacy by pairing only your app with an accessory. And learn how you can migrate existing accessories so they can be managed by AccessorySetupKit.
What’s new in privacy
At Apple, we believe privacy is a fundamental human right. Learn about new and improved permission flows and other features that manage data in a privacy-preserving way, so that you can focus on creating great app experiences.