【问题标题】:Is it possible to record incoming or outgoing call in iPhone?是否可以在 iPhone 中记录来电或去电?
【发布时间】:2016-12-14 11:45:23
【问题描述】:

我正在尝试在 iPhone 中记录来电和去电...是否可以在 iOS 中记录通话?

请告诉我。提前致谢。

【问题讨论】:

  • 问过很多次

标签: ios iphone


【解决方案1】:

可以。

使用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

Reference link

【讨论】:

  • "当 iphone 中有呼入和呼出时触发事件?" -> 如果我的应用被杀了,那么?
  • Apple 在开发应用程序时受到一些限制。这也属于这个问题。
  • 是的,我知道。那就是我问这可能吗?因为我想在应用程序处于活动状态时记录每个来电和去电..
【解决方案2】:

您可以通过以下链接:

Record the conversation of phone - ios

没有用于记录内置电话应用拨打(或接听)电话的公共 API。

您必须实现自己的电话呼叫机制。您可能想要使用 VoIP。 (例如,这就是 Google Voice 所使用的。)您需要在 Internet 上运行自己的服务器,或者与现有的 VoIP 服务签订合同。您将希望使用应用内购买让用户购买分钟,因为运行您自己的服务器或使用第三方服务需要花钱。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-10-05
    • 1970-01-01
    • 1970-01-01
    • 2012-09-10
    • 2011-01-17
    相关资源
    最近更新 更多