You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Chapter 2 contains the following passage:
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.
The text was updated successfully, but these errors were encountered: