             UIApplication.sharedApplication().registerForRemoteNotifications()
         })
     }
-    
-    /*
-    * After the token is received from APNs, pass the token to Push Notifications
-
-    func application(application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: NSData) {
-        
-        //IMFClient.sharedInstance().initializeWithBackendRoute(applicationRoute, backendGUID: applicationId)
-        //IMFGoogleAuthenticationHandler.sharedInstance().registerWithDefaultDelegate()
-        //let push = IMFPushClient.sharedInstance()
-        print(deviceToken)
-        self.push.registerDeviceToken(deviceToken, completionHandler: { (response, error) -> Void in
-            if error != nil {
-                print("Error during device registration \(error.description)")
-            }
-            else {
-                print("Response during device registration json: \(response.responseJson.description)")
-            }
-        })
-    }
     */
     
     /*

                return
            }
            self.push.subscribeToTags(tagsArray, completionHandler: { (response:IMFResponse!, error:NSError!) -> Void in

                let message = "Subscribed to the following tags: " + tagsArray.description
                let pluginResult = CDVPluginResult(status: CDVCommandStatus_OK, messageAsString: message)
                // call success callback

        self.commandDelegate!.runInBackground({
            
            self.push.retrieveAvailableTagsWithCompletionHandler { (response:IMFResponse!, error:NSError!) -> Void in
                let tags = response.availableTags() as! [String]
                let pluginResult = CDVPluginResult(status: CDVCommandStatus_OK, messageAsArray: tags)
                // call success callback
                self.commandDelegate!.sendPluginResult(pluginResult, callbackId:command.callbackId)
