Replies: 4 comments 1 reply
-
Thanks for the question! I believe you definitely want this behaviour. This is standard Android state preservation. E.g. when you open a camera app to take a photo, or your app is interrupted by a phone call, the system may kill your app in the background. Then when the user goes back to your app, it should be in the same state as before (e.g. the taken photo should be processed). I recommend making sure your app preserves all required state. If you really want to disable state preservation, you can try setting |
Beta Was this translation helpful? Give feedback.
-
Thank you for such a quick answer! How can I set up my component or child stack, to properly react to user intent to close an app? I also was trying to use persistent = false, in every of my childStack, not only in the root, but it still continues to recreate the latest screen after opening the app. I have this dependencies: |
Beta Was this translation helpful? Give feedback.
-
I have noticed that my application did not become inactive after killing by swiping out. So I think that is a side effect from my Service that should work in the background upd: not sure anymore about that, more testing shows different behaviours. |
Beta Was this translation helpful? Give feedback.
-
We have fixed it, the problem was because of we used Koin to inject the Root Component. Thanks for your time! |
Beta Was this translation helpful? Give feedback.
-
Hello!
I'm facing the next behavior:
after removing the app from active apps, and opening that app again, the app restores the latest screen that was in the stack, and the screen becomes unable to interact with
How to exclude that behavior?
I don't need to restore the app when it was killed by the user.
Beta Was this translation helpful? Give feedback.
All reactions