How are you doing this? The audio system should not be allowing PlayAndRecord to directly activate in a background app.
For Notification Tones
Audio session category is configured to AVAudioSessionCategoryPlayAndRecord with VoiceChat mode and AllowBluetooth option
Tones play using system audio services without an active audio session
No background audio session activation occurs for notification tones
Topic:
App & System Services
SubTopic:
Core OS
Tags: