Unable to switch to speaker output when bluetooth headsets are connected

风流意气都作罢 提交于 2019-11-28 11:49:21

I have exact same issue in the application I'm working on and it's reproducible only on iOS 12+ and only for W1 / H1 chip bluetooth devices (AirPods / new Beats Studio, etc.).

I asked apple audio engineers on WWDC about it (by showing my bug report) and they have confirmed that this is a known issue they're working on. Should be fixed in iOS update.. somewhen later :) To speed things up, you could duplicate this bug report: rdar://49734534

P.S. There is no pretty workaround for this issue, but there are few options:

  1. Use MPVolumeView's route button. It works, and seems like this is how WhatsApp handles this case.
  2. Disable bluetooth option for AVAudioSession. Far from perfect solution, but may work for some apps.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!