Hi everyone,
I am pretty new to writing Swift and only doing it to extend a React Native App, thus my knowledge is a bit limited.
I am trying to follow the example from https://developer.apple.com/documentation/mattersupport/adding-matter-support-to-your-ecosystem#Set-the-principal-class
Without implementing the Extension, the Workflow starts but fails after a few minutes to add the device to Apple Home. Hence, I am currently trying to add the extension (as this is later on needed anyway to commission the device to our ecosystem).
I added the class with some dummy logs to see if anything gets triggered but I am failing at registering the class as stated at https://developer.apple.com/documentation/mattersupport/adding-matter-support-to-your-ecosystem#Set-the-principal-class
How is this meant to work? I guess I need to define it in info.plist but at least this did not work out:
...
<key>NSExtensionPointIdentifier</key><string>com.apple.matter.support.extension.device-setup</string>
<key>NSExtensionPrincipalClass</key><string>IoBrokerAddDeviceExtensionRequestHandler</string>
...
Does anyone know how to register the class?
Thanks in advance.
Kind regards
Moritz