I would like to get some light in a topic that I’ve been facing for a while.
I will explain the steps I’m following:
I launch my app
I click on menu button which will “Suspend” my application.
- I open my background tasks and I select my application: THIS WORKS and components aren’t loaded again
- I click on my app icon and the application duplicates, triplicates and so on my AppComponent and the components that are loaded along with it like TabsComponent (in the router-outlet is overwritten).
When I’m in the application and I press the back button, the “Exit” event is raised.
- I open my background tasks, I select my application and the Components are loaded again which produces that the previous state (the route that was previously activated) is now another activity but still exists within the app
- I click on my app icon and the application duplicates, triplicates … the components again
My question is: It’s possible to save the state of the application somehow in order to not navigate or load previous components that have been already activated?
Thank you in advance!