You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For react native, specifically for IOS, we do not see permission enablement for Homekit. In order to implement this there is a native implementation required.
Can anyone help in this
Possible implementation
Add Homekit module for IOS
Code sample
@objc(MyHomeKitModule)classMyHomeKitModule: RCTBridgeModule{
@objcfuncrequestHomeKitPermission(){HMHomeManager.shared().requestHomeKitPermission{(success,error)inifsuccess{// HomeKit permission has been granted.}elseifleterror=error{// HomeKit permission has been denied or an error occurred.}}}
@objcfuncisHomeKitEnabled()->Bool{returnHMHomeManager.shared().isHomeKitEnabled}}
The text was updated successfully, but these errors were encountered:
Why it is needed?
For react native, specifically for IOS, we do not see permission enablement for Homekit. In order to implement this there is a native implementation required.
Can anyone help in this
Possible implementation
Add Homekit module for IOS
Code sample
The text was updated successfully, but these errors were encountered: