How to ignore a bluetooth device for audio - ios

The Problem
I am writing an app that uses a specific bluetooth 3.0 MFi device to receive data from a vehicle. Unfortunately the manufacturer of the device has set the bluetooth profile to headset. This means that when the phone is connected to the device but also connected to the in car bluetooth audio system and making a phone call / listening to music then the iPhone will intermittently switch from the in car bluetooth system to the bluetooth device used to retrieve data from the vehicle.
The question
How can i make iOS ignore a bluetooth device for audio?

Related

How to play sound/audio on a bluetooth device by CoreBluetooth?

I want to make an app to find the lost Bluetooth device (like Airpod). The idea is the same as Wunderfind.
With CoreBluetooth, I can display nearby Bluetooth devices with signal strength and distance. But I don't know how to play a sound/audio on these devices (to help the user to find it easily).
How to do this?
Unfortunately there isn't a direct way to do this with CoreBluetooth. LE Audio was just announced last month (6/7 Jan 2020) and it will take a few months or maybe even years for devices to begin supporting this. CoreBluetooth does not support transferring audio of any kind so your next best solution is to transfer normal BLE GATT packets, and then have the receiving device play some audio on reception of that specific sequence of packets. This means that your solution will be device specific and you'll have to work on the app side (on the iOS device) and the remote device that is playing the audio.
Some references for this:-
CoreBluetooth and audio stream
how to find Bluetooth audio devices in iOS
What profile can I use with CoreBluetooth?
What is LE Audio
Bluetooth Low Energy: A Primer

How to get the battery level of bluetooth connected devices

iOS 9's battery widget in notification enter shows the battery level of the device itself, and other peripherals connected via bluetooth. (Apple pencil / Apple watch / BT speakers / BT headphones)
how to get those numbers in iOS?
In my opinion the possible method is to use CoreBluetooth and discover the connected devices. Connect to the Apple Watch and subscribe to it's service which shows the battery level of the device. This is a possible way for connected peripherials through bluetooth.

How do I know when a Bluetooth device connects/disconnects to a specific device?

Can I detect in my app whether or not the iPhone connected to a specific Bluetooth device? In this case I want to detect whether the phone is connected to my car via Ford SYNC.
Is it possible? If yes, how?
I was already looking into the Core Bluetooth framework but that appears to be just about iBeacons and Bluetooth LE stuff.

Connecting multiple wireless devices to one main device using bluetooth

What I want to do is connect to bluetooth enabled devices to one main device. For example two bluetooth speakers to connect to my iPhone and play music.
Do speaker A needs to connect to Speaker B through bluetooth and then connect to the iPhone? IS this even possible?
iPhones music app can only output to one bluetooth speaker at a time.
Either the software would need to support multiple outputs or the speakers would need to have a feature to pair with each other.
So it is technically possible, but not supported by iOS' music app, nor do I personally know of a speaker that does that.

iOS: can I pair more than one bluetooth audio device at once?

I would like to write an iOS app to simultaneously record audio from several bluetooth headset microphones. Is this even possible given the api of iOS?
The bluetooth specification allows up to seven devices to connect, but it's not straightforward, as it is dependent on the type of device and the service profile it provides. For example, you can have a bluetooth keyboard, mouse, and headset connected at the same time, and an A2DP (Advanced Audio Distribution Profile) device to stream music, but you can't have two devices that performing the same service profile connected at the same time. check the link below for more info.
http://en.wikipedia.org/wiki/Bluetooth

Resources