focus_detector icon indicating copy to clipboard operation
focus_detector copied to clipboard

detect app in background, app closed, no internet. & custom triggers

Open jtkeyva opened this issue 4 years ago • 1 comments

if you double tap the home button on iphone, it minimizes current app and shows all apps tiled (app is not in foreground) but doesn't trigger a warning that the app in inactive/background.

is it possible to detect if the app is closed?

also, would be nice to add more detection triggers such as when there is no internet or if you're on cellular/wifi or even custom triggers

thanks

jtkeyva avatar Dec 11 '21 09:12 jtkeyva

Not sure if possible at the package level, but this detects more than focus. Perhaps you make a wrapper for MaterialApp? https://www.filledstacks.com/post/flutter-application-life-cycle-management/

jtkeyva avatar Dec 11 '21 09:12 jtkeyva