iOS - HomeKit:为什么添加用户需要太长时间?

时间:2015-07-09 09:07:20

标签: ios homekit

我正在尝试通过

将用户(HMUser)添加到我家(HMHome
[self.home addUserWithCompletionHandler:^(HMUser *user, NSError *error) {
        if (error) {
            UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error"
                                                            message:error.localizedDescription
                                                           delegate:nil
                                                  cancelButtonTitle:@"OK"
                                                  otherButtonTitles:nil];
            [alert show];
            return;
        }

        NSLog(@"add done!");

        [weakSelf.tableView reloadData];
    }];

引自:https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/HomeKitDeveloperGuide/ManagingUsers/ManagingUsers.html

从我的手机(其iCloud电子邮件是:例如me@gmail.com)中,我添加了一位访客(例如,其iCloud电子邮件是:guest@gmail.com)。客人立即收到Apple的通知,并按预期按Accept。之后,我的应用可以显示来宾电子邮件,这是正确的。问题是:客人很难查看我的共享房屋。有时候我要等2个小时但客人仍然无法查看我的家庭布局。我尝试在客户手机上重置wifi /蓝牙,但情况并不好。

对于如何修复此问题,您有什么想法吗?

提前致谢,

0 个答案:

没有答案