MPRemoteCommandCenter using Wireless Headset

So I have an app that works like PTT app, right now I want to use the remote events detected by MPRemoteCommandCenter, but I cannot do it, I'm setting up the AVAudioSessionsetCategory(.playAndRecord, mode: .default, options: [.defaultToSpeaker, .allowBluetooth]) is this possible?

With this I cannot receive events correctly.

If I change allowBluetooth to allowBluetoothA2DP it will receive the events from pressing any of the buttons in the wireless headset but it will not use the mic from the headset.

Any suggestion? thanks!