Stefan
Stefan

Reputation: 295

Is there any way in iOS to detect a Non-BLE car audio system on connect?

I'm working on an iOS app that is supposed to track the distance I'm driving in my car. My idea is to start tracking when the device connects to my Bluetooth Audio System.

However,

  1. the audio system does not seem to broadcast any BLE stuff, so CBCentralManager seems to not work for me.
  2. I don't get any EAAccessoryDidConnect Notifications, not even if the app is active
  3. I do get AVAudioSessionRouteChange Notifications when a AVAudioSessionPortBluetoothA2DP connects, BUT only when the app is active. If not, Notifications are queued and received when I manually open up the app

Does anyone have any further idea how fix my problem?

Thanks in advance, Stefan

Upvotes: 4

Views: 325

Answers (0)

Related Questions