谁能告诉我在 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/