Just create the sample hello world app in appcelerator and use the code below in the index.js file.
Start the app in an iOS simulator, click 'Hello, World'. The alert should pop up. Then turn off your wifi on your computer, the alert shouldn't pop up. Then turn your wifi back on. If the console.info is uncommented then the alert will work properly. If there is no console then the alert will not pop up.