首页 > 解决方案 > Linphone iOS App在拨出电话时崩溃,BackgroundTask

问题描述

我基于 Linphone SDK 构建了自己的 SIP 应用程序。

当我拨出电话时,通话 30 秒后,我收到以下消息:

[BackgroundTask] Background Task 7 ("Liblinphone cpu lock"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.
[BackgroundTask] Background Task 10 ("belle-sip transaction(0x280e88410)"), was created over 30 seconds ago. In applications running in the background, this creates a risk of termination. Remember to call UIApplication.endBackgroundTask(_:) for your task in a timely manner to avoid this.

然后应用程序在 30 秒后崩溃,或者有时在最多 4 分钟激活拨出呼叫后崩溃。如果我尝试拨出电话时我的应用程序仅响铃超过 30 秒,也会发生此崩溃。

当崩溃发生时,应用程序不在后台。该应用程序在传出期间处于前台。

该应用程序使用 Swift 5.0 和 iOS 目标版本 13.0 构建

标签: iosswiftlinphone

解决方案


推荐阅读