How to detect if a bluetooth device is connected - ios

Is there anyway to detect if a HID blue tooth device is connected to the device using Delphi XE5, for an iOS application.
Ideally, I would like to show an indicator light if a scanner is connected or not.
Yes, the scanner is iOS supported and does connect and work as keyboard.

Related

Does iOS scan beacon even if bluetooth is off

I am developing app which interacts with iBeacon. I've seen my app is able to detect iBeacon even if bluetooth is off. I am unable to find any documentation of this behaviour. Can anyone share official verdict/documentation what actually is going on behind the scene?
Thanks
When you tap the Bluetooth icon in Control Center to turn it “off” the icon changes from Blue to Grey, but this does not turn off Bluetooth. It just disables Bluetooth connections while allowing iBeacon scanning and scanning for other Bluetooth devices to continue.
You can verify this for yourself by turning the Bluetooth icon to the off position in Control Center like this:
Then drill down into settings to see that the Bluetooth switch is still enabled but below that connections are now disabled.
You cannot detect if a phone is in this state, but if your app constructs a new CBCentralManager when the phone is in this state, iOS will automatically put up a dialog like this:
If you are not using CBCentralManager, then it doesn't make any difference whether the phone is in this state or not -- you can scan for other devices (iBeacon using CoreLocation or non-iBeacon bluetooth devices using CoreBluetooth) the same way regardless of whether the phone is in this mode.

Nativescript ios: open vitrual keyboard when connected to bluetooth scanner

I have a bluetooth scanner connected to iPad.
ios doesn't support bluetooth spp mode, so I have to set scanner into HID.
However, after that, the virtual keyboard disappear.
I tried [ios keyboard] plugin.1 No luck.
I assume this may be a common case if your app work with bluetooth device(keyboard).
Any ideas?
Thanks in advance

Force software keyboard on iOS 10

Is there any way anyone knows of to force the onscreen software keyboard in iOS when a Bluetooth HID device (like a barcode scanner) is active?
There are a few ancient questions on SO, but most work by manually adjusting the frame of the keyboard view, and that method no longer appears to work as of iOS 8.
Strangely there doesn't seem to be any information on how to do this post iOS 8. Is it just impossible?
See:
Show iPhone soft keyboard even though a hardware keyboard is connected
Force on screen keyboard to show when bluetooth keyboard connected
Default keyboard is not coming when Barcode Scanner Device is Connected by Bluetooth in IOS
Bluetooth HID Device & iOS textFields
Show virtual Keyboard when bluetooth keyboard connected?

HID client implement in iOS

Can we used our iPhone as a HID client in iOS by using Bluetooth? We want to make HID communication with a Bluetooth Dongle. Our iPhone will send keys to dongle like a Keyboard, mouse , joystick etc.
The same we can done between a keyboard and a Dongle. But How it will possible when we are using ios device and dongle?
Please help to clarify my doubts If I am wrong anywhere.
Thanks in advance!!
iOS only provides HID Host, but not HID Peripheral. You may be able to capture the keypresses in an iOS application, and send the equivalent data (ASCII or HID frames) via Bluetooth Low Energy. A custom application on the dongle/device will be required to receive the data and convert/execute to HID if desired.

Bluetooth connection in iOS

Is it possible to programatically pair an iOS device with a Bluetooth device?
I would have the device's MAC address and also the Bluetooth Pin.
I know it's possible to do on an Android device without any pairing screen/dialogue appears, but can it be done in iOS?
Thanks for any pointers.

Resources