Application is using AVAudioSessionCategoryPlayAndRecord category and How are you doing this? The audio system should not be allowing PlayAndRecord to directly activate in a background app. But AVAudioSessionCategoryOptionAllowBluetoothHFP Option is not defined in AVAudioSessionCategoryOptions What do you mean? It's right here. Is there any option to use as alternative of AVAudioSessionCategoryOptionAllowBluetooth option? No, but that's because AVAudioSessionCategoryOptionAllowBluetooth and AVAudioSessionCategoryOptionAllowBluetoothHFP are exactly the same thing. From AVAudioSessionTypes.h, after you remove the availability markings: /// Deprecated - please see ``AVAudioSessionCategoryOptionAllowBluetoothHFP`` AVAudioSessionCategoryOptionAllowBluetooth = 0x4, ... /// - Other categories: /// AllowBluetoothHFP defaults to false and cannot be changed. Enabling Bluetooth for input in /// these categories is not allowed. AVAudioSessionCategoryOptionAllowBluetoothHFP = 0x4, In other words, AVAudioSessionCa
Topic:
App & System Services
SubTopic:
Core OS
Tags: