Dominik Roszkowski needs to attract extra consideration to this query:
I want an instance of how you can both modify the Flutter engine or how you can function on it to verify it pauses execution when app goes to background on iOS even with state restoration enabled.
My app is related to BLE accent utilizing CoreBluetooth state restoration and preservation (SRP). Because of this the native a part of the app can obtain HR samples repeatedly even when the app is within the background. Nonetheless, what I can even see is that the Flutter a part of the app retains working regardless of app being in paused lifecycle state.
I did a easy experiment and began timer in Flutter when utilizing and never utilizing Core Bluetooth SRP.
when not utilizing the SRP the Timer stopped printing into log after 20 seconds
when utilizing SRP the Timer stored working indefinitely so long as the BLE accent was sending HR samples
What I am in search of is to keep up the everyday Flutter conduct however maintain utilizing SRP on the native aspect.
Which a part of the Flutter is liable for stopping the “execution” when app goes to paused state?
Can Flutter be paused regardless of SRP being on?
Is there a strategy to put Flutter engine to paused state programmatically?
If not, do you see every other methods to maintain the everyday Flutter engine/ViewController conduct?