How do I check if internet connection is available? Android

Get help using Construct 2

Post » Thu Mar 19, 2015 6:34 pm

Hi!

I want to be sure that a internet connection is available within my game otherwise other actions will take place.

Now i did a test but it did not work.

As in my test the position of a image should change once a internet connection should be available or not.

It simply does not change and always results in the fact that a connection is available. Even if it is not.

My code:
Image

This is a game for Android. Tested on Android.
B
10
S
4
G
3
Posts: 163
Reputation: 2,507

Post » Fri Mar 20, 2015 3:28 pm

On went online
On went offline
Triggered if the connection to the internet is becomes available or unavailable during the running of the game. This is common on mobile devices which may be moving in and out of signal areas. The Is online condition also changes to reflect the connection status.


https://www.scirra.com/manual/110/browser



Though the IS online seems to be failing on your end.

Perhaps try the On went off/on line ones.
Who dares wins
B
50
S
10
G
10
Posts: 1,728
Reputation: 12,866

Post » Tue Sep 15, 2015 9:28 am

On went online
On went offline
and
Is online
not working on android device with crosswalk
B
14
S
6
Posts: 232
Reputation: 1,675


Return to How do I....?

Who is online

Users browsing this forum: RobertMKD and 18 guests