gpt4 book ai didi

audio - 为什么应用程序因 UIBackgrounds 模式键而被拒绝?

转载 作者:行者123 更新时间:2023-12-04 08:55:56 25 4
gpt4 key购买 nike

我的应用程序已经在 Titanium 中完成。我的应用程序在某些部分有一些音频 mp3 链接。用户可以播放这些链接,为了在后台播放,我添加了一个键 所需的背景模式 作为“应用程序播放音频”。但即使我使用可听内容并提供 key ,Apple 也拒绝了我的两次 信息.Plist - 请有人建议我该怎么做?我需要在 Itunes 上再次上传新版本吗?
enter image description here

2.16: Multitasking apps may only use background services for their intended purposes: VoIP, audio playback, location, task completion, local notifications, etc.

We found that your app uses a background mode but does not include functionality that requires that mode to run persistently. This behavior is not in compliance with the App Store Review Guidelines.

We noticed your app declares support for audio in the UIBackgroundModes key in your Info.plist, but did not include features that require persistent audio.

As indicated in the iOS Application Programming Guide:

"This key is intended for use by applications that provide audible content to the user >while in the background, such as music-player or streaming-audio applications."

Therefore, it would be appropriate to provide audible content to the user while the app is in the background or remove the "audio" setting from the UIBackgroundModes key.

For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. Please be sure to:

  • include the complete details of your rejection issues
  • prepare any symbolicated crash logs, screenshots, and steps to reproduce the issues for when the DTS engineer follows up.

For information on how to symbolicate and read a crash log, please see Tech Note TN2151 Understanding and Analyzing iPhone OS Application Crash Reports.

If you have difficulty reproducing this issue, please try testing the workflow as described in https://developer.apple.com/library/ios/qa/qa1764/Testing Workflow with Xcode's Archive feature".

最佳答案

您应该在 AppDelegate 的 didFinishLaunchingWithOptions 方法中设置适当的 Audio Session 以支持背景音乐播放。

[[AVAudioSession shareInstance] setDelegate:self];
NSError *sessionError = nil;
[[AVAudioSession shareInstance] setCategory:AVAudioSessionCategoryPlayback error:&sessionError];

NSError *activationError = nil;
[[AVAudioSession shareInstance] setActive:YES error:&activationError];

关于audio - 为什么应用程序因 UIBackgrounds 模式键而被拒绝?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11771224/

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