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:
<array> <string>_matter._tcp</string> <string>_matterc._udp</string> <string>_matterd._udp</string> </array> </plist>