”…iOS will return a pairing code to your app, and your app can proceed to set up its administrator fabric on the accessory via IP using the pairing code.”
but where?
Post
Replies
Boosts
Views
Activity
Added the MatterExtension for MatterAddDeviceExtensionRequestHandler as new Target. Everything is automatically generated.
But still only the default MatterAddDevice pickerView is displayed instead of MatterAddDeviceExtension?!
func play() {
Task {
let homes = [MatterAddDeviceRequest.Home(displayName: "my Home")]
let topology = MatterAddDeviceRequest.Topology(ecosystemName: "MyEcosystemName", homes: homes)
let request = MatterAddDeviceRequest(topology: topology)
do {
try await request.perform()
print("Successfully set up device!")
} catch {
print("Failed to set up device with error: \(error)")
}
}
}
Entitlements:
Matter Allow Setup Payload = YES
.plist is set up:
NSLocalNetworkUsageDescription
NSBonjourServices: