ios - 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 构建
解决方案
推荐阅读
- vue.js - Vue.js 是否可以创建一个可以直接更改其值的计算属性?
- http - 我应该在每个传入请求中创建新的上下文吗?
- amazon-web-services - API Gateway,我在哪里可以设置方法设置?
- java - 如何为 Azure Function TimerTrigger 实现单元测试
- ruby-on-rails - 不允许的参数问题 Ruby on Rails 5
- java - Spring Framework 的验证不适用于 JSR-303 验证
- python-3.x - 如何自定义 SOQL 日期格式
- python - 从数据框中删除列中的一些特定关键字并将其保存到 json
- continuous-integration - JFrog Xray 3.0 的计划是什么?
- apache-spark - 如何查找 Spark 集群的工作人员信息?