didChangeAppLifecycleState(state); // the below line of code is for debugging purpose // print("The current state of the app is: $state"); setState(() { _appLifecycleState = state; // the code below is used to check that if the app life cycle is // in inactive state then cance...