Corebluetooth state preservation willRestoreState

1.2k views Asked by At

This application implements central manager state preservation and restoration. (IOS 7.1)

When the application is terminated by the system (e.i memory low ) the core bluetooth continues monitoring the peripheral's events on the application behalf, so the peripheral continues connected.

Now, if the peripheral disconnect (e.i. our of range ) the application is relaunched into background and willRestoreState is called but didDisconnectPeripheral is never called, but if the application is brought back to foreground by the user, then didDisconnectPeripheral is called.

This application must process didDisconnectPeripheral event after the state restoration while it is still in background.

How can I achieve this behavior?

0

There are 0 answers