Does anyone know if it's possible with the components
to check if there's an internet connection ? Sometimes
when the internet connection is lost, my app crashes, so
i would like to check if the connection is oke.
Cheers,
Rob
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi !
Does anyone know if it's possible with the components
to check if there's an internet connection ? Sometimes
when the internet connection is lost, my app crashes, so
i would like to check if the connection is oke.
Cheers,
Rob
The only real way to test a connection is to try to connect to a remote server.. How about use indy and ping something?
Hi everyone,
Found this, works great ! (On XE4 AND XE5 AND Android !)
http://delphi.radsoft.com.au/2013/11/checking-for-an-internet-connection-on-mobile-devices-with-delphi-xe5/
Cheers,
Rob
Last edit: Rob Kenders 2013-11-20
Great, thanks!
Hi!
I try to use the linked Network State Demo, but with the XE5 Update 2 I got the following error: "Objective C class Reachability can not be found".
Any suggestion?
Thanks
Hi Fenistil,
You use the simulator or on real device ?
I still use XE4 but i've seen that error also here sometimes,
but only when targeting the simulator, real device works fine
then.
Cheers,
Rob