是否可以找到也有Apple设备的用户的联系人? [英] Is it possible to find user’s contacts that also have Apple devices?

查看:80
本文介绍了是否可以找到也有Apple设备的用户的联系人?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

鉴于iOS通讯录API或其他与App Store友好的API,是否可以找到也使用iOS的用户联系人?我能想到的唯一启发式方法是查找所有具有 kABPersonPhoneIPhoneLabel 电话号码的联系人,但是该方法同时存在很多误报和误报。

Given the iOS Address Book API, or possibly other App Store friendly APIs, is it possible to find the user’s contacts that also use iOS? The only heuristic I was able to come up with was finding all contacts that have a kABPersonPhoneIPhoneLabel phone number – but that method has a lot of both false positives and negatives.

推荐答案

现在可以使用CloudKit和 CKDiscoverAllContactsOperation 类。您只会获得使用相同应用程序并获得明确许可的用户联系人,但在某些情况下,这是一个不错的开始。

This is now possible using CloudKit and the CKDiscoverAllContactsOperation class. You only get the user’s contacts that also use the same app and have given an explicit permission, but for some use cases it’s a nice start.

这篇关于是否可以找到也有Apple设备的用户的联系人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆