Add allowBackgroundAudioMessagePlayback build setting

This commit is contained in:
Alfonso Grillo
2022-10-13 12:53:37 +02:00
parent f1dec5c8fa
commit 3275178a7a
3 changed files with 17 additions and 0 deletions
@@ -183,6 +183,10 @@ import MediaPlayer
}
private func setUpRemoteCommandCenter() {
guard BuildSettings.allowBackgroundAudioMessagePlayback else {
return
}
displayLink.isPaused = false
UIApplication.shared.beginReceivingRemoteControlEvents()