cocos2dx applicationDidEnterBackground and return error connect.

0 votes

hello.

when app go to background an return

connect is lost.

how connect again when applicationWillEnterForeground()?

 

asked Feb 26, 2014 in AppWarp by brown (10 points)

1 Answer

0 votes
Yes, this is because most mobile OS close socket connections of apps when they are in the background. You will have to connect again to the server when this happens. We have a blog post which explains the process that you can use

http://blogs.shephertz.com/2013/08/29/ios-connection-resiliency-sample/

Its on cocos2d but you can follow the same for cocos2dx as well.
answered Feb 26, 2014 by dhruvc (1,099 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...