【发布时间】:2016-12-14 11:45:23
【问题描述】:
我正在尝试在 iPhone 中记录来电和去电...是否可以在 iOS 中记录通话?
请告诉我。提前致谢。
【问题讨论】:
-
问过很多次
我正在尝试在 iPhone 中记录来电和去电...是否可以在 iOS 中记录通话?
请告诉我。提前致谢。
【问题讨论】:
可以。
使用AudioToolbox和libkern/OSAtomic.h
首先你需要在来电时触发。
Fire an event when ever there is Incoming and Outgoing call in iphone?
录制通话正是您想要的。 SO post
注意:
Apple 仅当您的应用程序在前台时才允许使用这些挂钩。 允许您的应用在后台运行的条件: 对于需要更多执行时间来实现的任务,您必须请求特定权限才能在后台运行它们而不会被挂起。
在 iOS 中,只允许特定的应用类型在后台运行:
Apps that record audio content while in the background Apps that keep users informed of their location at all times, such as a navigation app Apps that support Voice over Internet Protocol (VoIP) Apps that need to download and process new content regularly Apps that receive regular updates from external accessories
【讨论】:
您可以通过以下链接:
Record the conversation of phone - ios
没有用于记录内置电话应用拨打(或接听)电话的公共 API。
您必须实现自己的电话呼叫机制。您可能想要使用 VoIP。 (例如,这就是 Google Voice 所使用的。)您需要在 Internet 上运行自己的服务器,或者与现有的 VoIP 服务签订合同。您将希望使用应用内购买让用户购买分钟,因为运行您自己的服务器或使用第三方服务需要花钱。
【讨论】: