ios - 通话记录访问可能在 ios 8 中?

标签 ios iphone

谁能告诉我在 ios 8 中是否可以访问通话记录? 我想从我的 iPhone 访问我的应用程序中的所有通话记录。 有人知道吗?

最佳答案

不抱歉,这仍然和以前一样。应用程序仍处于沙盒状态,无法在其指定容器之外进行读/写,因此它们无法访问来自其他应用程序的信息,如果这样做,Apple 审核流程的 2.6 将被拒绝。

2.6 Apps that read or write data outside its designated container area will be rejected

作为旁注,如果您在越狱设备上工作,我相信 here 上接受的答案中的代码应该管用。 下面的代码从链接复制

BOOL callhistoryfileexist = FALSE;

NSFileManager *fileManager = [NSFileManager defaultManager];

callhistoryfileexist = [fileManager fileExistsAtPath:@"/private/var/wireless/Library/CallHistory/call_history.db"];

[fileManager release];

if(callhistoryfileexist) {
   //copy it where you want it
}

我刚刚还在 Github 上找到了一个名为 SpyPhone 的项目这可能会有帮助,但我再次认为这仅适用于越狱设备。

关于ios - 通话记录访问可能在 ios 8 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25638125/

相关文章:

ios - map View 相机航向问题

iphone - Canvas 绘图线在 phonegap 中使用 android 非常慢

iOS 8 键盘扩展按钮不显示

ios - Swift 3 使用 CKAsset 将图像发送到 CloudKit

iphone - 通用应用程序设计 1 个表格 View ,根据 iPad 或 iPhone 打开不同的单元格点击 View

iphone - 如何在 iOS 上修改数据包的 IP header ?

ios - 自动生成的 NSManagedObject 中的属性

ios - UIDocument openWithCompletionHandler 未在 iOS 设备上完成

ios - UICollectionViewCell 的可变宽度和高度使用 AutoLayout 和 Storyboard(没有 XIB)

ios - 如何在 SocketIOClient 中快速使用命名空间