Hi there,
I have been working on an ionic 4 & phaser game app. I am new to phaser so I’d be grateful if you could provide me some pointers about the below issue.
Issue: When I pause a scene and hide the game page (component), the app crashes after a minute or so if I do not do anything. If I keep playing everything works just fine… This is on an android device and the crash is due to WIN DEATH, which makes me think this is related Application Not Responding error.
Moreover, if I just pause the game but do not hide the page, things work just fine, as well.
If I may, I have two questions:
-
What is the best practice to change game levels at phaser? I use pause/restart and also switch between game pages…
-
If the above method is OK to use, what is the right way to pause a scene during page hiding? I saw in the documentation that modern browsers may automatically pause the scene if the page is hidden. However, I do not want to rely on that method as the end user may have an old phone.
Thanks,
Doug