paritytech / trappist-extra

Apache License 2.0
38 stars 6 forks source link

Handle app lifecycle state #9

Open evilrobot-01 opened 1 year ago

evilrobot-01 commented 1 year ago

App should be optimised to handle suspend/resume on mobile devices via hooks: i.e. saving state and pausing smoldot when suspended to save battery, as well as demonstrating how fast it is to sync on resume.

More info at: https://medium.com/knowledgelens/flutter-applifecyclestate-management-3cc745f0170d https://api.flutter.dev/flutter/dart-ui/AppLifecycleState.html