Initially, I developed my app using tabs. When navigating to a page, the view would load for the first time (fetch data from API and display it), and upon returning to the same page, nothing would reload because the controller did not run again.
Recently, I switched to utilizing the Ionic2 side menu starter template, which seems to be set up correctly. However, when I visit the podcast page and play a track, then navigate away, the track continues playing (which is desired). But upon returning to the podcast page, it behaves as a new instance - the track shows as not playing, the progress bar resets, and I can start playing the track again, resulting in two instances playing simultaneously. It appears that the entire controller initializes a new instance each time. This also means that HTTP requests are sent every time I go back to the page, although this may not be an issue if caching is implemented. My primary concern is the inconsistency with the podcast progress/state.
Does anyone have any helpful tips or suggestions on how to address this issue?
Thank you!