Background Timer Feature#1

This commit is contained in:
2025-10-16 17:54:48 +05:30
parent c78a90dbfe
commit 73b96b82f7
2 changed files with 6 additions and 3 deletions

View File

@@ -68,7 +68,10 @@ void didChangeAppLifecycleState(AppLifecycleState state) {
break;
case AppLifecycleState.paused:
_backgroundTimer = Timer(const Duration(minutes: 2), () {
SystemNavigator.pop();
if (Platform.isAndroid) {
SystemNavigator.pop();
}
exit(0);
});
break;
default: