简体   繁体   English

是否有跨设备CNContact标识符?

[英]is there a cross device CNContact identifier?

Is there any icloud identifier for a CNContact that I could persist and reuse across devices ? CNContact是否有任何icloud标识符可以在设备上持久存储和重用?

The idea would be to be able to pull that CNContact again from a different iOS device. 这个想法是能够从另一个iOS设备再次拉出CNContact。

Documentation doesn't say anything about that. 文档没有说明这一点。 I know the previous ABAddressbook framework didn't have that either but I'm hoping apple might have something cooking for that. 我知道以前的ABAddressbook框架也没有,但我希望苹果可能有一些烹饪的东西。

I asked an Apple rep at the 2016 WWDC conference and the answer is NO. 我在2016年WWDC大会上问苹果代表,答案是否定的。 at least not at the moment. 至少现在不是。 they might have something for this in the future but for now you will have to make sure match the CNContact identifier you stashed against the local store to be sure its the same contact. 他们将来可能会有这样的东西,但是现在你必须确保匹配你藏在本地商店的CNContact标识符,以确保它是相同的联系人。

per the documentation 根据文件

Note that this identifier only uniquely identifies the contact on the current device. 请注意,此标识符仅唯一标识当前设备上的联系人。

https://developer.apple.com/reference/contacts/cncontact/1403103-identifier https://developer.apple.com/reference/contacts/cncontact/1403103-identifier

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM