Is it possible to restore centralManager state after updating the application?

I am working on a single application in which I need to support continuous execution of a background application. I can constantly communicate using the available background modes in Apple. But before one problem, when the application is in the background (or does not work) and installs an updated version of the application, after that the centralManager delegates stopped functioning. So I'm not sure if we can restore CentralManager after updating the application or not?

If its not possible, is there another option (or patch;)) available

One of the alternative methods is to send a silent push notification to start the application in the background (but for this we need to send a silent notification as soon as the new version of the application is installed on all devices).

+6
source share
1 answer

The information of the central manager will be restored if it loses its descriptor when it enters the suspend state.

If the application goes into suspend mode, it will lose its memory, and at this time, the system saves the BLE application information to restore information when the application appears in the foreground.

But not sure when the application receives the update ...

0
source

Source: https://habr.com/ru/post/986147/


All Articles