delueg Posted March 8, 2014 Share Posted March 8, 2014 Hello, i wonder if this is the right section to ask: i am doing a game with phaser and wrap it up for android with cocoonjs. Now when i close the game with the home-botton, the game doesn´t change in pause mode.. seems the visibitliychange event doesn´t fire here and this cause the game to crash.When you open up the app again the screen is frozen but you can see that the game logic didn´t paused. Any ideas how i can workaround here? Thanks Sven Link to comment Share on other sites More sharing options...
Videlais Posted March 9, 2014 Share Posted March 9, 2014 Can you load the CocoonJS Custom Loader and then your own code, or otherwise get access to CocoonJS' console? It's possible an error is being thrown inside CocoonJS itself and we might be able to fix or catch it somehow in Phaser. (This might already be fixed in Phaser 1.2 too. There has been a major update to how visibility works in the latest development branch.) Link to comment Share on other sites More sharing options...
Recommended Posts