Ios CallKit能否检测GSM呼叫并检索传入号码?
我想做一个应用程序,检测传入和传出的GSM呼叫 此应用程序的目的是将有关呼叫的分析发送到我的web服务器 我检查了呼叫套件,但它没有给我一个明确的想法,我是否可以这样做的GSM电话。它只谈到voip 验收标准Ios CallKit能否检测GSM呼叫并检索传入号码?,ios,swift,callkit,Ios,Swift,Callkit,我想做一个应用程序,检测传入和传出的GSM呼叫 此应用程序的目的是将有关呼叫的分析发送到我的web服务器 我检查了呼叫套件,但它没有给我一个明确的想法,我是否可以这样做的GSM电话。它只谈到voip 验收标准 检测GSM来电 获取电话号码 在调用结束时,将号码和调用持续时间发送到API 拨出电话同上 我在CallKit的CallDirectory扩展中看到了这段代码 private func addAllIdentificationPhoneNumbers(to context: CXC
private func addAllIdentificationPhoneNumbers(to context: CXCallDirectoryExtensionContext) {
// Retrieve phone numbers to identify and their identification labels from data store. For optimal performance and memory usage when there are many phone numbers,
// consider only loading a subset of numbers at a given time and using autorelease pool(s) to release objects allocated during each batch of numbers which are loaded.
//
// Numbers must be provided in numerically ascending order.
let allPhoneNumbers: [CXCallDirectoryPhoneNumber] = [ 1_877_555_5555, 1_888_555_5555 ]
let labels = [ "Telemarketer", "Local business" ]
for (phoneNumber, label) in zip(allPhoneNumbers, labels) {
context.addIdentificationEntry(withNextSequentialPhoneNumber: phoneNumber, label: label)
}
}
不,那会侵犯隐私,但能做到吗?它适用于企业发行版appNo,甚至不适用于企业应用程序。可能如果你再次越狱,那么AddAllIdentificationPhoneNumber会做什么呢?我很困惑,它允许你根据电话号码注册姓名。iOS将匹配这些数字,并显示您的分机提供的名称。您的分机永远无法访问实际传入的号码