How to check network Connectivity on specific time? Can i use background service for it?

You must Login before you can answer or comment on any questions.

Hello everyone, I am new to titanium. I have develop an app that can working offline.For that i want to check Whether Internet Connection is available or not? on every 15 seconds.And also i want this process to Runing in background via background services.Is it possible? Please help me for this.

— asked 1 year ago by Parth vasavada
2 Comments
  • Let me specify one thing that i want this for mobile application.For Both iphone and Android.

    — commented 1 year ago by Parth vasavada

  • Please help me guys its urgent so.

    — commented 1 year ago by Parth vasavada

4 Answers

Accepted Answer

http://developer.appcelerator.com/question/8861/detect-internet-connection-in-appjs

You could also check it on a timer using the setInterval() function... http://www.w3schools.com/jsref/met_win_setinterval.asp

A little search goes a long way http://developer.appcelerator.com/question/48091/checking-for-network-connectivity

Thanks Raul but actually i want to run this code for neteork connection in backround on every 15 seconds.Is it possible?

Thank you very much Matthews it is working completely fine and as per my requirement.

Your Answer

Think you can help? Login to answer this question!