How to dedect internet connection on Phone's?

Get help using Construct 2

Post » Thu Apr 11, 2013 8:02 pm

Hi,

How can i dedect internet connection on phones with Construct2? Specially for CocoonJs.

Sorry for my bad english.

Thanks for reading have a nice day.

B
31
S
10
G
2
Posts: 310
Reputation: 5,426

Post » Thu Apr 11, 2013 10:41 pm

You could just do an AJAX request to your own website (if you have one) -- and if it fails -- device is offline.
B
4
Posts: 14
Reputation: 703

Post » Fri Apr 12, 2013 2:57 pm

[QUOTE=jtokarchuk] You could just do an AJAX request to your own website (if you have one) -- and if it fails -- device is offline.[/QUOTE]

Thank you very much your idea works perfect.
B
31
S
10
G
2
Posts: 310
Reputation: 5,426


Return to How do I....?

Who is online

Users browsing this forum: currypuff, makotto, randomly, Walessio and 25 guests