Show a battery notification with a BLE device - ios

Is it possible to add another device to the batteries widget?
The device is not an headset, and it will be connected via BLE exclusively.
Is there anything that can be done in my application or on the device itself to support this?
Possibly related:
Bluetooth Design Guidelines (section 5)

Related

IOS Bluetooth not discover in iPhone settings page

We are working in Blood pressure monitor project . we have implemented GATT protocol in our device to communicate with iphone / iPad . so far we are using Core bluetooth framework to communicate with our device ,Its working fine in data transmitting.
But our device is not visible / listing in iPhone Bluetooth in the settings page.
please note that we are not using any MFI chip.
Please advice what we needs to be done to make our device visible in iphone's bluetooth settings page without using MFI chip.
In order for your BLE device to show up in iOS Bluetooth settings, it has to have gone through the pairing process, as stated by Larme.
To do so, the device must have one or more characteristics that are encrypted. When your app tries to read/write/indicate on that characteristic, the read will fail with an Insufficient Authentication error code, which will then should start the pairing process. See section 25.10 in Apple's Accessory Design Guidelines - https://developer.apple.com/accessories/Accessory-Design-Guidelines.pdf
Once the user has selected to Pair in the dialog, keys are exchanged to finish the pairing process. Your device will show up in Bluetooth settings at that point.
Is there a specific reason that you want the device to show up in Bluetooth settings?

I want to connect to iPhone's BLE through my BLE device

The purpose of this task is to connect to iPhone's BLE through BLE device to access ANCS of iphone. Please note that there is no app installed in iPhone to turn ON BLE of iPhone.
So, If we enable Bluetooth from iPhone setting, will it enable BLE along with BT classic?
Yes, if you enable BLE on an iPhone, you are enabling BT classic as well. The reason for this is that BLE is just a subset of the whole Bluetooth radio, along with BT classic. Since they use the same physical radio and chip, there is no way to enable BLE without turning on BT classic or vice versa. That being said, there is very limited functionality of BT classic on iPhones and most of that is restricted to developers unless you join the MFi program.
For more information on the different Bluetooth subsets, please see this answer:-
Can a Bluetooth LE powered device discover a classic Bluetooth device and vice-versa?
Please note that you will always have to enable Bluetooth manually on an iPhone and there is no way to enable this automatically.
I hope this helps.

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.

Bluetooth: how to let ios attempt "App Not Installed"

I am doing something by Nordic nrf51822 BLE solution, is there any idea to let ios(iphone/ipad) attempt dedicated app is not installed after ble device pair to the iphone or ipad(like the attachment picture)? I search the internet and many forums, no found similar use case. But in Logitech bluetooth speaker, it has this function, my device is a BLE peripheral device, nordic has apple notification center service(ANCS) sample code, it seems only get the notifications from ios only, does any body know ANCS can do such function or not? And it's much appreciated if you have more information for me. thanks.
App not installed picture
The alert you have shown is triggered when an MFi device is detected for which the app isn't installed. MFi devices have an Apple 'chip' in them that presents an identity that iOS can use to identify the appropriate apps in the App Store.
BLE devices are excluded from the MFi program and so you cannot present this alert when your BLE peripheral is discovered - indeed, without an app to discover the peripheral iOS won't even attempt to connect to the peripheral.

ANCS Notifications in Core Bluetooth Framework

I am working with a BLE device which shows all the notifications received on my iOS device. I have set up all the ANCS part form the BLE Device side and it is working successfully.
I am trying to implement a functionality which will include the use of a switch in the settings screen named as "Allow notifications".
As the name suggest, If switched off then the ANCS notifications should not transfer from my device to the BLE device.
This approach is being taken so as the micro controller has to process a lot less information in case the notifications are off.
Please suggest a way if anything is possible from iOS side as we do not have any control over the ANCS notification in Core Bluetooth framework.
Thanks in advance.
I think the easiest way will be to send a command over BLE from the iOS device to the BLE Device to "STOP" listening for ACNS. You could send a special notification class you use for commands to stop listening. You could then re-enable delivery by sending a "GO" command to the BLE Device.
This way you can turn off and on the ability of the BLE Device to listen or not to the ANCS from iOS.

Resources