Reconnect BLE device in the background.

Hi,

We are developing an app for our bluetooth low energy(BLE) device, this device has some specific services and characteristics for communication with our app.

All works fine until my app is connected with the BLE device.


Current implementation :

When BLE device gets disconnected from my app, we have a module for reconnection which invokes after every specific time interval and retrieve all connected peripherals from CBCentralManager and try to reconnect my device.

We want remove this reconnection module as it is consuming phones battery.


Questions:

1. Is there any way for my app to get notified when my BLE device gets reconnected to phones bluetooth setting? (So that I can replace my current implementation of BLE device reconnection)

2. What is the best practice for reconnecting BLE devices. (In foreground as well as in the background mode)


Thanks in advance,

Reconnect BLE device in the background.
 
 
Q