简体   繁体   English

如何使用Quickblox iOS SDK为视频通话或聊天激活应用程序?

[英]How to active application for video calling or chat using Quickblox iOS SDK?

I heard about iOS it self wouldn't allow an app to stay longer while its in background. 我听说过iOS会自动禁止应用在后台停留更长时间。 I don't know exact minutes but how I can active my app to handle video / audio calls or for chat functionality. 我不知道确切的分钟数,但是我如何激活我的应用程序以处理视频/音频呼叫或聊天功能。 I'm using Quickblox iOS SDK for video/audio calls and chatting. 我正在使用Quickblox iOS SDK进行视频/音频通话和聊天。

PS I've successfully implemented this functionality only worry about background? PS我已经成功实现了此功能,只担心后台吗? Is there a way in Quickblox SDK to achieve this? Quickblox SDK中有没有办法实现这一目标?

Any help/suggestions would be highly appreciated. 任何帮助/建议将不胜感激。

Here is the list of the application where you can perform actions or keep alive your app while your app is in background. 这是应用程序的列表,您可以在后台运行时执行操作或使应用程序保持活动状态。

Audio and AirPlay 音频和AirPlay

The app plays audible content to the user or records audio while in the background. 该应用程序在后台播放用户可听的内容或录制音频。 (This content includes streaming audio or video content using AirPlay.) The user must grant permission for apps to use the microphone prior to the first use; (此内容包括使用AirPlay的流音频或视频内容。)用户必须在首次使用前授予应用程序使用麦克风的权限;否则,用户无法使用麦克风。 for more information, see Supporting User Privacy. 有关更多信息,请参见支持用户隐私。

Location updates 位置更新

The app keeps users informed of their location, even while it is running in the background. 该应用程序即使在后台运行,也可以使用户知道其位置。

Voice over IP IP语音

The app provides the ability for the user to make phone calls using an Internet connection 该应用程序为用户提供了使用Internet连接拨打电话的功能

Newsstand downloads 书报摊下载

The app is a Newsstand app that downloads and processes magazine or newspaper content in the background. 该应用程序是一个报亭应用程序,可在后台下载和处理杂志或报纸的内容。

External accessory communication The app works with a hardware accessory that needs to deliver updates on a regular schedule through the External Accessory framework. 外部附件通信该应用程序与需要通过外部附件框架定期交付更新的硬件附件一起使用。

Uses Bluetooth LE accessories 使用蓝牙LE配件

The app works with a Bluetooth accessory that needs to deliver updates on a regular schedule through the Core Bluetooth framework. 该应用程序与蓝牙附件一起使用,该附件需要通过Core蓝牙框架定期提供更新。

Acts as a Bluetooth LE accessory 充当蓝牙LE附件

The app supports Bluetooth communication in peripheral mode through the Core Bluetooth framework. 该应用程序通过Core Bluetooth框架以外围模式支持Bluetooth通信。 Using this mode requires user authorization; 使用此模式需要用户授权。 for more information, see Supporting User Privacy. 有关更多信息,请参见支持用户隐私。

Background fetch 后台获取

The app regularly downloads and processes small amounts of content from the network. 该应用程序会定期从网络下载并处理少量内容。

Remote notifications 远程通知

The app wants to start downloading content when a push notification arrives. 该应用程序希望在推送通知到达时开始下载内容。 Use this notification to minimize the delay in showing content related to the push notification. 使用此通知可以最大程度地减少显示与推送通知相关的内容的延迟。

If your app will be performing one of the above tasks just add related key into your plist file. 如果您的应用将执行上述任务之一,只需将相关密钥添加到您的plist文件中即可。 For more check official Apple docs: https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html 有关更多信息,请查看Apple官方文档: https : //developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM