有关 iPhone 中被阻止的呼叫的信息
我想获取有关被阻止和掉线的信息。当您通过手机呼叫某人时,有时您的呼叫会被阻止或掉线,然后您会听到一条消息:“请重试”。我想在我的应用程序中访问该信息。 iPhone 上可以吗?也许适用于越狱设备?
I want to get information about blocked and dropped calls. When you call someone through your phone, sometimes your call get blocked or dropped, then you hear a message, "Please try again". I want to access that information in my app. Is it possible in iPhone? Maybe for jailbroken devices?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
由于安全沙箱的原因,呼叫信息不可用于原生操作系统 iOS 设备上的应用程序。
Call information is not available to apps on stock OS iOS devices, due to security sandboxing.
播放“请重试”录音的决定(通常)是由电话网络中称为“服务控制点”的设备做出的。从手机的角度来看,“请重试”录音看起来与成功完成的呼叫相同:网络不会告诉您的手机它将呼叫路由到二级处理,因此手机上没有存储您可以收集的数据或分析。
当您的 iPhone 显示“呼叫失败”消息和“重试”按钮时,故障点离您较近 – 通常这意味着您的手机与蜂窝基站失去了联系 – 并且手机确实记录了呼叫失败的信息不要通过。显然,在不使用私有 API 的情况下访问 iPhone 的通话历史数据库是可能的,所以理论上你可以在您的应用程序(如果 Apple 批准)。
The decision to play a "please try again" recording is (generally) made by a device called a Service Control Point in the telephone network. From the phone's perspective, a "please try again" recording looks the same as a successfully completed call: The network doesn't tell your phone that it routed the call to secondary treatment, so there's no data stored on the phone that you could collect or analyze.
When your iPhone displays a "Call Failed" message and a "Try Again" button, the point of failure is closer to you – usually it means your phone lost contact with the cellular base station – and the phone does log that the call didn't go through. Apparently it's possible to access the iPhone's call history database without using private APIs, so in theory you could use this in your app (if Apple approves).