saikamesh
saikamesh

Reputation: 4629

CoreBluetooth re-subscribe to characteristic while reconnecting

In my app, I am able to successfully connect to a BLE peripheral and subscribe to a characteristic, so that the app gets notified whenever there is a change in the characteristic value. But the app is not notified upon changes in characteristic value after the central manager is reinitialized during state restoration. Below is what I do during state restoration:

Will simply reconnecting to the peripherals will do the characteristics subscription internally or finding services and subscribing to characteristic to be done explicitly as it is done during first launch ?

Upvotes: 0

Views: 160

Answers (1)

MattD
MattD

Reputation: 380

I wouldn't be surprised if this is buggy, so a robust solution would be to subscribe to the notifying characteristic when your app resumes.

Upvotes: 0

Related Questions