ios 5.1 kills the App when in background

on ios 5.0, our cocos2D-x game can be moved to background (with home button) and called back by pushing the game icon like usual.

on devices udpated to ios 5.1, the game is killed when moved to background. The app is fully restarted when you push the game icon.

we use : cocos2d-1.0.1-x-0.11.0

Any idea where this could come from ?

thanks for your help!

I have experienced this issue before but since version 12.
For my case, when hitting home button the program crash implicitly and when we go back to our game, it will fully restart.

Please see my thread http://www.cocos2d-x.org/boards/6/topics/9216?r=9223#message-9223, brief solution is that we need to stop animation and handle things properly before pausing/resuming application in cocos2d-x.

seems top work.
thanks!

Thanks! Works :slight_smile:

I hope it will be added to the next version.