0 Replies
      Latest reply on Feb 22, 2020 6:59 AM by OCS1
      OCS1 Level 1 Level 1 (0 points)

        Hi there,


        using this code:


            NSURL *url=[NSURL URLWithString:@"x-hm://00143ZB11VOLT"];
            HMAccessorySetupPayload *pl=[[HMAccessorySetupPayload alloc] initWithURL:url];
            NSLog(@"ABOUTTOTRY WITH PLOAD %@ from URL %@",pl,url);


        I am consistently getting this result:


        ABOUTTOTRY WITH PLOAD (null) from URL x-hm://00143ZB11VOLT


        There are no other logs around, especially no error log from the HomeKit which would explain why the payload was not created.


        I am testing on iPhone, 13.3 (17C54), against a real HomeKit database, without the simulator. The URL is also real, scanned from a QR sticker on an actual accessory.


        Any idea what can be the culprit and how to fix the problem? Thanks!