How can I check game activated from the backgound?

Hi Guys,

I am developing some super awesome game with cocos-creator.

I think this engine is so awesome but I have encountered an problem.

the problem is I can’t reconnect to server after game activated from the background.

I am using tcp server for my game. When the game app is inactive and in the background, it loses its connection to the server. So when the app is activated again, it tries to connect to the server, but I don’t know how to do this.

Can anyone help with this?

And a minor one, if anyone knows how to use the old BezierTo action in 3.0, please let me know.

You can check the network status in the Game.EVENT_SHOW callback and initiate a reconnect request if the network is down.
game.on(Game.EVENT_SHOW, this._onShow);

You can refer to this:

Wow… Amazing! Thank you Koei I will try this right away!