Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AudioLooper_Starter info.plist already includes background modes #14

Open
jefflovejapan opened this issue Jan 19, 2020 · 0 comments
Open

Comments

@jefflovejapan
Copy link

Chapter 2 contains the following passage:

With the audio session properly configured, redeploy the app to your device and run the tests again. You can hear that toggling the Ring/Silent switch no longer mutes the audio. This behavior looks good, so let’s verify that your audio continues to play when you lock the device. If you hit the Lock button, you can hear the audio continues to... Houston, we have a problem. You’re still seeing the same behavior as before. Shouldn’t you have solved this issue by setting the category to AVAudioSessionCategoryPlayback? The answer is no. Setting this category makes the app eligible to play audio in the background, which is the state we’re in when the device locks, but you still need to explicitly opt in to that behavior by making a small change to the application’s Info.plist.

then continues to describe how to add the relevant background mode to the app's plist. However, the starter already has the background mode added, so the passage and explanation can confuse readers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant