How to check if network is available (Wifi or 3G)?
Is there an API for this?
2 Answers
-
Yes, there certainly is:
https://developer.appcelerator.com/apidoc/mobile/1.2/Titanium.Network-module
-
Don't forget that, if your app either requires 3G (Phone component) or Wifi to also update the "build/iphone/Info.plist.template" file with the correct keys for UIRequiredDeviceCapabilities.