
The application is in an inactive state and is not receiving user input. It can either be in the progress of attaching a view when the engine was first initialized, or after the view being destroyed due to a Navigator pop method. This means that the engine is running without a view. In this state the application is still hosted on a flutter engine but is detached from any host views. Let us understand it one by one: detached I assume this will be the rare case as now most smartphones come with a non-removable battery.Īccording to official Flutter Documentation, there are FIVE different constants mentioned. For instance, if the user removed the battery from the device then you will not be receiving any notifications. In some rare circumstances, it does not receive these state notifications. But you cannot expect always to receive notifications. These state notifications are sent by your device’s operating system. We can trigger different method as per the state that your app is in. This state is known as the app life cycle state. Your mobile app can be in the various state during its usage. Here is the tutorial!! AppLifeCycleState Management When I send the app to background the music was still playing, even when I lock my phone. In my app, I had implement music in the app game-play. Which should have been published by the time you are reading this article. Just before the thought came for me to write this article, I was developing an app called Jinda – Bhutan Quiz App. So I thought why not write an article about it. With the usage of Flutter, I could not find many useful articles online regarding AppLifeCycleState management in Flutter. As a mobile app developer, you will be required to use AppLifeCycleState at some point.
