Post

Replies

Boosts

Views

Activity

How to capture Bluetooth notifications on Mac and iOS?
I want to capture Bluetooth "Classic" device notifications on both Mac and iOS platforms primarily when: Bluetooth is turned on/off When a device gets connected/disconnected to Bluetooth On Mac: I used the IOBluetooth framework in Mac for this by registering for two notifications: registerForConnectNotifications registerForDisconnectNotifications However, the issue with this is that notifications get triggered even when a connect request happens with the device. (For ex: I pressed connect for connecting with headphones and a notification is received even though it failed to connect to the device for whatever reason). I need the notification to be received only when the device is successfully connected with the system. On iOS: I am not sure which framework to go with - whether CoreBluetooth or External Accessory. I did read that CoreBluetooth supports classic devices but not every device. I would appreciate any insight or help on this topic.
1
0
1.5k
Nov ’21
How to capture Bluetooth notifications on Mac and iOS?
I want to capture Bluetooth "Classic" device notifications on both Mac and iOS platforms primarily when: Bluetooth is turned on/off When a device gets connected/disconnected to Bluetooth On Mac: I used the IOBluetooth framework in Mac for this by registering for two notifications: registerForConnectNotifications registerForDisconnectNotifications However, the issue with this is that notifications get triggered even when a connect request happens with the device. (For ex: I pressed connect for connecting with headphones and a notification is received even though it failed to connect to the device for whatever reason). I need the notification to be received only when the device is successfully connected with the system. On iOS: I am not sure which framework to go with - whether CoreBluetooth or External Accessory. I did read that CoreBluetooth supports classic devices but not every device. I would appreciate any insight or help on this topic.
Replies
1
Boosts
0
Views
1.5k
Activity
Nov ’21