iOS 应用在不播放音频时是否带有背景音频 运行?

Does an iOS app with background audio run when not playing audio?

声明使用背景音频的 iOS 应用是否 运行 无限期?或者,它的生命周期是否与 AVAudioSession 活动相关?或者,它是否与激活的音频播放有关?

我想知道当您在后台应用程序中停止音频时会发生什么。那么该应用是否符合终止条件?

我只对 iOS 8 和 9 感兴趣。

Apple 文档说:

When the UIBackgroundModes key contains the audio value, the system’s media frameworks automatically prevent the corresponding app from being suspended when it moves to the background. As long as it is playing audio or video content or recording audio content, the app continues to run in the background. However, if recording or playback stops, the system suspends the app.

More details