mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
When backgrounding an app in debug mode, we make a request for additional background time for the app with a background task. This prevents us from losing the devfs session used for hot reload. In the case where the app is backgrounded beyond the additional time provided by iOS, it's required that we end the background task or the app will be terminated by the OS. We previously ended the background task only on foregrounding, but failed to do so on expiry of the task.