Background Timer Feature#1
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user