User guide

Ask the user for permission to record input using the requestRecordPermission: method. Don’t rely
on the iOS to prompt the user.
Audio Guidelines for Metering Apps
Metering apps want the minimal amount of system-supplied signal processing applied to the input and output
routes. Set the AVAudioSessionCategoryPlayAndRecord category and the measurement mode to minimize
signal processing. Also, apps of this type will not mix with other apps.
Apple recommends the following guidelines:
Always attempt to reactivate and resume playback after an end interruption event.
Ignore all route changes unless the app specifically needs to pay attention to them.
Set the audio category before displaying a video splash on app launch.
Ask the user for permission to record input using the requestRecordPermission: method. Don’t rely
on the iOS to prompt the user.
Audio Guidelines for Browser-like Apps That Sometimes Play Audio
Apps like Facebook and Instagram don’t record audio, only playback audio and video. They use the
AVAudioSessionCategoryPlayback category and do not obey the ringer switch. These apps also do not
mix with other apps.
Apple recommends the following guidelines:
Always wait for the user to initiate playback.
Deactivate the audio session after video ends and set the
AVAudioSessionSetActiveFlags_NotifyOthersOnDeactivation key.
Pause the audio session due to a route change caused by an unplug event, but keep the audio session
active.
Register for remote control events while video is playing and unregister when the video ends.
Update the UI when the app receives a begin interruption event.
Wait for the user to initiate playback after receiving an end interruption event.
Audio Guidelines By App Type
Audio Guidelines for Metering Apps
2014-09-17 | Copyright © 2014 Apple Inc. All Rights Reserved.
45