implement AppLifecycleState when desktop support arrives #26
Labels
No Label
accessibility
android
before-launch
blocked-on-external-dependency
bug
chat-overlay
document-workaround
double-column
duplicate
enhancement
fix-pending
flutter-bug
group-experiment
help wanted
invalid
invite-overlay
needs-testing
packaging
privacy
provisionally-fixed
question
theme
tor
windows
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: flutter/flutter_app#26
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently on desktop, Flwtch sometimes takes up to 16 seconds after closing the window (clicking the 'X') to provide time for Isolates to close... unfortunately our eventbus blocks and this never happens unless we're lucky with event timing.
Theoretically we would fix this by calling cwtch.dispose() when the app is closed, but Flutter doesn't support this code path directly yet (AppLifecycleState only functions correctly on an unknown subset of mobile platforms). We could wait for official support (github tracking), but the Flutter devs seem reluctant for some reason to believe they haven't implemented this feature yet.
Some of their closed/wontfix issue threads suggest we may be able to pipe an onClose notification from Kotlin to Flutter/Dart. Keeping in mind that this problem only occurs on desktop, it seems worth investigating when someone has the bandwidth. It may not even require piping to a handler, if eg we could respond to the onClose event with System.exit(0) or something immediately.....