是否有用于访问通话记录的iOS API? [英] Is there an iOS API for accessing call logs?

查看:307
本文介绍了是否有用于访问通话记录的iOS API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序中访问设备的通话记录。我有很多R& D,并在Stack Overflow上发现了一些帖子(例如,这一个),但他们都不清楚我们是否能做到这一点。

I want to access the call log of the device in my application. I have R&D a lot and found some posts here on Stack Overflow as well (for example, this one), but none of them have clear vision whether we can do this.

当我查看这些应用程序时:

When I look into these apps:

  • Truecaller
  • quickReminder

......似乎他们设法在他们的应用程序中获取通话记录并进行自定义。

...it seems that they managed to get the call history in their app and customized it as well.

任何帮助/可行性都将受到赞赏。

Any help/feasibility would be appreciated.

推荐答案

无法以编程方式提取呼叫日志。

It is not possible to extract the call log programmatically.

首先,Apple正式不会公开任何公共API来访问电话登录。这意味着您可以破解所有想要访问呼叫日志的内容(使用私有API),但在将应用程序提交给Apple时,肯定会被拒绝。

First of all Apple officially does not expose any public API to access the call log. That means you can hack all you want to access the call log(Using private API's) but when submitting your app to Apple by sure it will be rejected.

关于应用程序你提到过(quickRemainder)

Regarding the app you have mentioned(quickRemainder)

它使用cvs文件或文本文件获取调用日志。它没有通过设备calllog db获取信息。

It gets the call log using a cvs file or a text file. It is not taking the info via device calllog db.

从他们的应用说明中提取。

Extract from their app description.


您可以导入文本或cvs文件包含打电话到这个应用程序。

You can import text or cvs files containing phone calls into this app.

TrueCaller没有得到通话记录他们只是使用该应用程序搜索联系人并更新联系人他们得到的信息。他们没有阅读callogs

TrueCaller does not get the call log they just use the app to search the contacts and update the contacts with info they got. They are not reading the callogs

更新: Apple推出了名为Callkit的框架。虽然您无法访问所有通话记录,但您可以控制一些电话,例如

Update: Apple has introduced framework called Callkit. Though you cannot access all the call log, you can have some control over calls like

识别来电

阻止拨打

https:/ /developer.apple.com/reference/callkit

这篇关于是否有用于访问通话记录的iOS API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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