I am working on an app in Appcelerator Titanium 5.2 SDK, which requires a stable internet connection during the `sync` process.

I want to limit the app to do work, only when its online and the network connection type is either `3G`, `4G` or `WiFi`. I don't want the app to sync via a slow connection such as `2G`, `EDGE`, `GPRS` etc...

How can I achieve this in appcelerator titanium mobile app?

I can check through out my app if it's online or not using this method:

```
Alloy.Globals.online = Ti.Network.online;
Ti.Network.addEventListener( 'change', function( e ) {
    Alloy.Globals.online = e.online;
});

```

This only tells me the connection state, however the connection type info I am after is not available. Any ideas?