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,
- the audio system does not seem to broadcast any BLE stuff, so CBCentralManager seems to not work for me.
- I don't get any EAAccessoryDidConnect Notifications, not even if the app is active
- 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