OK so I’m working on a language learning app with tables and local audio files that play when you tap certain boxes, and I’ve been struggling to get everything to work with native-audio.
I am preloading the files into memory on the ionViewDidLoad firing and I unload the files from memory on the ionViewDidLeave firing.
The problem is that if I push another page on the nav stack and then pop() back to a previous page, the ionViewDidLoad doesn’t fire a second time so tapping on the chart doesn’t play any audio files. I see the unload logged in console when I push a new page, but they aren’t re-loaded if the page is popped into view.
Can someone help me understand how the nav controller works with respect to viewdidload/viewdidleave and pushing and popping. Popping doesn’t lead to viewdidload firing again, is that correct? Any recommendation on how to re-load audio when a page is popped into view?