focus_detector
focus_detector copied to clipboard
detect app in background, app closed, no internet. & custom triggers
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
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/