苹果审核 2.5 解决:性能问题与 remote control

苹果审核指出,应用在Info.plist中声明支持音频后台模式,但在后台无法播放音频。该应用需要在锁屏状态下提供可听见的内容,如音乐播放或流媒体音频。解决方案包括更新应用,确保锁屏时能播放音频并显示锁屏播放界面,包含至少一个暂停按钮。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

From Apple


2. 5 Performance: Software Requirements


Guideline 2.5.4 - Performance - Software Requirements


Your app declares support for audio in the UIBackgroundModes key in your Info.plist, but we were unable to play any audible content when the app was running in the background.

Next Steps

The audio key is intended for use by apps that provide audible content to the user while in the background, such as music player or streaming audio apps. Please revise your app to provide audible content to the user while the app is in the background or remove the "audio" setting from the UIBackgroundModes key.


锁屏后,播放器不但要有声音,还有有一个锁屏时候的播放界面

  • 开启锁屏播放
if UIApplication.shared.responds(to: #selector(UIApplication.beginReceivingRemoteControlEvents)){
            UIApplication.shared.beginReceivingRemoteControlEvents()
            UIApplication.shared.beginBackgroundTas
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值