I use state preservation and restoration. After simulating memory pressure using kill(getpid(), SIGKILL);
, the app is killed and then is woken up, I receive notifications from the CBCentralManagerDelegate
and I can communicate with peripherals.
Should restoration works after:
According to posts like this: Long-Term Actions after app is killed, point 2 could not be possible.
Restoration works for cases when the app is killed by the OS:
kill(getpid(), SIGKILL)
In any other cases, the app is not restored. The reason behind it is probably the intention that the user wanted to kill the app so it should not be re-launched. This may not be true for reboot but Apple has treated it that way so far.
No reports have shown changes so far in iOS 8 regarding the restart after reboot behavior.
There is no way to restart after a taskbar kill but for the reboot there is an alternative solution. You can register for significant location changes which will to restore the app after reboot. This has worked for me very reliably.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With