Ivan Lopez Posted May 8, 2017 Share Posted May 8, 2017 Hi! I have a problem in Android and IOS phaser games. When I minimized the navigator and I return ti the game after 30 secs or more, the game crash Please, help me! Thank commmunity! Link to comment Share on other sites More sharing options...
ivanix Posted May 8, 2017 Share Posted May 8, 2017 HI Ivan, Can you provide more detail? What browser you use for Android and which one for iOS? On Android, assuming you are using Chrome, you should try to connect remotely from a desktop Chrome browser inspector. On iOS, if you are using the Safari browser, you can do similiar connection with Safari desktop. Connect remotely, change over to the console, then minimize your browser on the device and remax. You should see some error messages if the app is crashing, unless the browser is crashing as well. Link to comment Share on other sites More sharing options...
rich Posted May 8, 2017 Share Posted May 8, 2017 What's the crash error? Link to comment Share on other sites More sharing options...
Ivan Lopez Posted May 9, 2017 Author Share Posted May 9, 2017 Hi, With debug not appears errors. It looks like it's suspendend. I noted that if i wait 30 secs approximately the game it works again. I use tweens and if I write console messages, i note onComplete method is stop during that 30 secs. Why? The problem only occurs with android and ios. Thanks! Link to comment Share on other sites More sharing options...
Ivan Lopez Posted May 11, 2017 Author Share Posted May 11, 2017 Hi! I solved my problem with plugin cordova background... but I get other problem.. Appstore rejected my game because that plugin are not allowed for this purpose.. Then..What can I do? Javascript sleep in background and when i restore the app need 30 secs.. and on the other hand, I have the solution with the plugin, but my app can not be published. Help, please Link to comment Share on other sites More sharing options...
Philippe Posted August 24, 2017 Share Posted August 24, 2017 Hi! Attempts to change the variable game.stage.disableVisibilityChange to false. Link to comment Share on other sites More sharing options...
Recommended Posts