cocos2dx 3.0 - Check Device is Connected internet

0 votes
hello.

is it possible is device Connected internet?

i wanna get status about 3G or wifi in IOS,Android.

Thanks!
asked Mar 31, 2014 in App42 Cloud API-BaaS by brown (10 points)

1 Answer

0 votes

Hi,

There is no any specific feature in cocos2d-x as well as App42_Cocos2dX_SDK that detects internet connection.

But you can implement your own native codes for that such as:

For iOS, search for Reachibility class from Apple.

For Android, check this post: http://stackoverflow.com/questions/2802472/detect-network-connection-type-on-android
 

answered Mar 31, 2014 by rajeev.etc (1,660 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
...