Bluetooth A2DP API support in iOS?

I want to make an iPhone application that supports A2DP and can automatically read sms for car drivers.

I have already developed a version for Android, but I do not know how to handle A2DP on iOS. I researched it on wikipedia and I found that with iOS 3.0 it supports Bluetooth A2DP as shown below.

New Developer APIs (iOS 3.0)
Push notifications for third-party applications
Bluetooth services including A2DP , LDAP, file sharing P2P and BonjourP2, P3, T2, T3 ...

Is there anyone who can help me with this problem?

+4
source share
1 answer

I recently developed many Android / iOS apps that support Bluetooth classics or BLE connectivity with smart devices.

In Android:

It’s very easy for you to deal with A2DP, you can directly connect the A2DP profile of the device on your Android device.

But on iOS, currently:

The biggest problem is that in the first step you need to connect the A2DP profile to the device, and then the audio stream will be automatic if you do not need to manage the details of the A2DP operation.

NORMAL, it is very difficult for you to directly connect the A2DP profile of the device, you need to go to the system settings, find and connect a specific Bluetooth device. But this is really a bad user experience, users really don’t know why they should do it!

If you want to connect the device’s A2DP profile directly to iOS in your application, these methods will help you:

1.You can inform users about connecting a specific Bluetooth device in the iOS system settings, but this is very bad for the user.

2.Apple does not provide a public API for you to deal with A2DP in iOS, I ever asked an Apple representative for support, they told me that there was no way to do this, they did not tell me why they did not support it and when it will support.

3.You can use the private API to work with the A2DP connection in iOS, if you do not publish your application in the App Store, this is very useful. But if you want to publish your application on the App Store, it is very dangerous, Apple will probably reject your application, if you really want to, you must improve your technical skills of using the private API in iOS to prevent failure.

4. If you or your friend is working on the Bluetooth device you want to connect, a software engineer can help you in some optimization of the A2DP connection with the iOS device. First you need to connect the device’s A2DP in and then the device can get the link key, and then, if users do not cancel the A2DP pairing information in the Bluetooth system settings, the device can directly connect the A2DP iOS device.

0
source

Source: https://habr.com/ru/post/1333434/


All Articles