OnResume not called after pressing back (to leave Android app) and reopening the app

I am working on an app that has a loading page set up for when the app starts as it gathers all of the data needed to begin the user's experience. This data is set up in the OnAppearing method. This works for most use cases except if you use the Android back button to get out of the app. When you press home to get out of the app, and then go back into it, OnResume is called for the app and all data is still there from the previous session, however when you go back into the app after pressing the back button, OnResume is not called but data is still there. Has anyone else run into OnResume not being called in this situation? Am I right in thinking that OnResume should be called in this situation? This seems to be causing an issue where part of the app is expecting OnResume and the other part is waiting for everything to start from scratch.

Best Answers

Answers

Sign In or Register to comment.