Game display corruption on phone sleep & resume

We have developed a very simple game with one timer.

When playing the game in the simulator & without the phone going to sleep, everything works as expected.

When we play the game for some time and then leave the phone for couple of minutes till phone goes to sleep & then switch it on again, the game screen is blank, there is a white block on the top right, but it still responds to touches though there is no display.

Has anyone encountered a similar issue? Is there a fix?

Is there a workaround? Can we recognize the phone sleep event & exit the game before it goes to sleep?

Any help much appreciated. [import]uid: 92238 topic_id: 31716 reply_id: 331716[/import]

I haven’t encountered this before. I just tried it in my own project and didn’t encounter any issues.

I’d be curious if you’re able to reproduce this issue in a stripped down version of your code (that others on the forum could run to try to reproduce the isse). I’m also curious what device and OS version you are running on.

  • Andrew [import]uid: 109711 topic_id: 31716 reply_id: 126687[/import]

Never seen this issue myself, but check out http://docs.coronalabs.com/api/event/system/type.html [import]uid: 36792 topic_id: 31716 reply_id: 126709[/import]

I haven’t encountered this before. I just tried it in my own project and didn’t encounter any issues.

I’d be curious if you’re able to reproduce this issue in a stripped down version of your code (that others on the forum could run to try to reproduce the isse). I’m also curious what device and OS version you are running on.

  • Andrew [import]uid: 109711 topic_id: 31716 reply_id: 126687[/import]

Never seen this issue myself, but check out http://docs.coronalabs.com/api/event/system/type.html [import]uid: 36792 topic_id: 31716 reply_id: 126709[/import]