Sunday, 11 October 2020

Listen to a key/button press from a BT remote control/device connected to an iPhone (via bluetooth)

We have a requirement to develop an app that will be controlled by a remote control Bluetooth device. The device/remote is already working with Android, and now we need to find a way to get the buttons press events.

This what I've found out so far:

  • I've tried to connect with CoreBluetooth and only got 2 services: PnP id and battery info so it's not helping us.

  • The device isn't in the MFi program so EA framework won't help in this case.

  • When connected to an iPhone - the device/remote is triggering 4 system events:

    1. volume up
    2. volume down
    3. mute/unmute
    4. home button

    The problem though, we need to override these actions to our own actions, in addition to listening to other button presses that are currently ignored by the system.

  • I've read numerous Q&As here but haven't found something smilier to our scenario and something actually helpful.

I'm fully aware that we might need to write some c or c++ code or develop a profile or something similar - I just don't know where to start at this point..



from Listen to a key/button press from a BT remote control/device connected to an iPhone (via bluetooth)

No comments:

Post a Comment