         let isReachable = (flags & UInt32(kSCNetworkFlagsReachable)) != 0
         let isWWAN = (flags & UInt32(kSCNetworkReachabilityFlagsIsWWAN)) != 0
         
-        if(isReachable && isWWAN){
+        if(isReachable || isWWAN){
+            // Have connection
+            if (isWWAN){
+                // Setup the Network Info and create a CTCarrier object
+                var networkInfo = CTTelephonyNetworkInfo()
+                var carrier = networkInfo.subscriberCellularProvider
+                
+                // Get carrier name
+                var carrierName = carrier.carrierName
+            }
+            
             return true
         }
-        if(isReachable && !isWWAN){
-            return true
-        }
-        
         return false;
     }
 


import UIKit
import SystemConfiguration

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {


    
    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        var userConnected = true
        if(!isConnectedToNetwork()){
            userConnected = false
        }
        NSUserDefaults.standardUserDefaults().setObject(userConnected, forKey:"isConnected")
        NSUserDefaults.standardUserDefaults().synchronize()
        // Override point for customization after application launch.
        return true
    }
