【问题标题】:VoIP app / restore connection on rebootVoIP 应用程序/重启时恢复连接
【发布时间】:2015-09-24 19:42:39
【问题描述】:

我开发了一个 VoIP 应用程序,并从文档中了解到 VoIP 应用程序会在手机重启时自动重启。但是,在重新启动时不会调用 DidFinishLaunchingWithOptions,因此我的连接无法恢复。

重新连接的唯一方法似乎是手动启动它。

我可以看到该应用程序在内存中,因为当我单击它时它会很快启动,但我认为该应用程序应该能够在无需用户干预的情况下恢复其连接。

有什么想法吗?我错过了什么?我错过了 AppDelegate 中的另一个回调吗?

【问题讨论】:

    标签: ios voip


    【解决方案1】:

    该应用能够在此状态下接收远程通知。 根据

    Voip Pushkit notification will not re-launch the app if it was force-quitted and device was rebooted

    这似乎在大多数情况下都有效。

    我没有找到任何官方文件。

    编辑:

    这里

    https://developer.apple.com/library/ios/documentation/Performance/Conceptual/EnergyGuide-iOS/OptimizeVoIP.html#//apple_ref/doc/uid/TP40015243-CH30-SW1

    是 pushkit 的官方文档,描述了应用程序被唤醒,即使它没有运行或处于后台模式。

    【讨论】:

      猜你喜欢
      • 2021-01-04
      • 1970-01-01
      • 1970-01-01
      • 2013-11-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-19
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多