         // Register the notification settings.
         let newNotificationSettings = UIUserNotificationSettings(forTypes: notificationTypes, categories: nil)
         UIApplication.sharedApplication().registerUserNotificationSettings(newNotificationSettings)
+        
+        #if DEBUG
 //        UIApplication.sharedApplication().registerForRemoteNotifications()
+        #endif
     }
     
     

        println(">>> Entering \(__FUNCTION__) <<<")
        println("\(error), \(error.localizedDescription)")
    }
    
    // MARK: Custom Methods
    func deepLinkToURL(url: NSURL) {

        return true
    }
    
    // MARK: Local Notifications
    
    func application(application: UIApplication, didReceiveLocalNotification notification: UILocalNotification) {
        println("Received a local notification payload: \(notification)")
        
