gpt4 book ai didi

ios - 使用 Quickblox 和 CallKit 的 iOS 13 中的传入视频调用问题

转载 作者:行者123 更新时间:2023-12-01 16:19:47 25 4
gpt4 key购买 nike

功能:我在应用程序中实现了 QuickBlox 视频通话。

问题:如果应用程序在后台,收件人不会收到来电通知。

结果:视频通话在 iOS 12 上运行良好,但仅在 iOS 13 上出现问题。

我检查了很多链接来解决问题:

  1. https://docs.quickblox.com/docs/ios-quick-start?_ga=2.195456812.1462473955.1597308006-918905754.1585299886
  2. https://docs.quickblox.com/docs/ios-video-calling-advanced
  3. https://github.com/QuickBlox/quickblox-ios-sdk/tree/master/sample-videochat-webrtc-swift
  4. https://github.com/twilio/voice-quickstart-ios/issues/275

另外,我在 QuickBlox 的 GitHub 存储库上发布了问题:

  1. https://github.com/QuickBlox/quickblox-ios-sdk/issues/1199
  2. https://github.com/QuickBlox/q-municate-ios/issues/345

问题的崩溃日志:

"didReceiveIncomingPushWith called"
"[HomeVC] timeIntervalSinceStartCall > QBRTCConfig.answerTimeInterval"
2020-06-23 22:51:12.114253+0530 MyApp[2555:1050373] Apps receving VoIP pushes must post an incoming call (via CallKit or IncomingCallNotifications) in the same run loop as pushRegistry:didReceiveIncomingPushWithPayload:forType:[withCompletionHandler:] without delay.
2020-06-23 22:51:12.114529+0530 MyApp[2555:1050373] *** Assertion failure in -[PKPushRegistry _terminateAppIfThereAreUnhandledVoIPPushes], /BuildRoot/Library/Caches/com.apple.xbs/Sources/PushKit/PushKit-36/PKPushRegistry.m:343
2020-06-23 22:51:12.127602+0530 MyApp[2555:1050373] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Killing app because it never posted an incoming call to the system after receiving a PushKit VoIP push callback.'
*** First throw call stack:
(0x1b7c3498c 0x1b795d0a4 0x1b7b36d1c 0x1b7f6c8f4 0x1cb735a5c 0x10b82ac04 0x10b839888 0x1cb7349cc 0x10b829828 0x10b82ac04 0x10b838c64 0x1b7bb23c4 0x1b7bad3b8 0x1b7bac8bc 0x1c1a18328 0x1bbc426d4 0x10520ac58 0x1b7a37460)
libc++abi.dylib: terminating with uncaught exception of type NSException
Message from debugger: Terminated due to signal 9

最佳答案

看起来该应用程序正在正确接收 voip 通知,但没有使用 CallKit registerCall 函数处理它,因为它是在文档和崩溃日志中编写的,它必须在同一个运行循环中立即发生,您可以理解为相同的线程,因此请确保您以这种方式实现了它。

关于ios - 使用 Quickblox 和 CallKit 的 iOS 13 中的传入视频调用问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63391772/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com