Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

PTT with MFi headset as trigger

Our company is developing an MFi headset with a button that we would like to use for initiating PTT.

We can detect the button press and initiate PTT successfully, even when the app is not in the foreground, using the ExternalAccessory framework.

But I wonder if this is a coincidence, or a scenario that should reliably work with Push to Talk?

Answered by DTS Engineer in 843392022

Our company is developing an MFi headset with a button that we would like to use for initiating PTT.

We can detect the button press and initiate PTT successfully, even when the app is not in the foreground, using the ExternalAccessory framework.

But I wonder if this is a coincidence, or a scenario that should reliably work with Push to Talk?

A mix of both. The PushToTalk framework BLE PTT controllers by allowing bluetooth authorized app to start transmitting. I haven't looked closely at how ExternalAccessory is authorized, but I suspect your EA authorization is "counting" as bluetooth authorized. That wasn't something we specifically intended, however, I do think it's something that should work and that we should/would fix if it broke.

__
Kevin Elliott
DTS Engineer, CoreOS/Hardware

Accepted Answer

Our company is developing an MFi headset with a button that we would like to use for initiating PTT.

We can detect the button press and initiate PTT successfully, even when the app is not in the foreground, using the ExternalAccessory framework.

But I wonder if this is a coincidence, or a scenario that should reliably work with Push to Talk?

A mix of both. The PushToTalk framework BLE PTT controllers by allowing bluetooth authorized app to start transmitting. I haven't looked closely at how ExternalAccessory is authorized, but I suspect your EA authorization is "counting" as bluetooth authorized. That wasn't something we specifically intended, however, I do think it's something that should work and that we should/would fix if it broke.

__
Kevin Elliott
DTS Engineer, CoreOS/Hardware

PTT with MFi headset as trigger
 
 
Q