             }
             let tagsArray = [tag]
             BMSPushClient.sharedInstance.unsubscribeFromTags(tagsArray: tagsArray as NSArray, completionHandler: { (response, statusCode, error) -> Void in
-                
+
                 if error.isEmpty {
-                    
+
                     let pluginResult = CDVPluginResult(status: CDVCommandStatus_OK, messageAs: response!.description)
                     // call success callback
                     self.commandDelegate!.send(pluginResult, callbackId:command.callbackId)
-                    
+
                 }else{
-                    
+
                     print( "Error during unsubscribe Tags \(error) ")
                     let message = error.description
                     let pluginResult = CDVPluginResult(status: CDVCommandStatus_ERROR, messageAs: message)

            });
        })
    }
    
    func subscribe(_ command: CDVInvokedUrlCommand){
        self.commandDelegate!.run(inBackground: {
            
            guard let tag  = command.arguments[0] as? String else {
                let pluginResult = CDVPluginResult(status: CDVCommandStatus_ERROR, messageAs: "Tag Parameter is Invalid.")
                // call success callback

            });
        })
    }

    func unsubscribe(_ command: CDVInvokedUrlCommand) {
        self.commandDelegate!.run(inBackground: {

            guard let tag  = command.arguments[0] as? String else {
                let pluginResult = CDVPluginResult(status: CDVCommandStatus_ERROR, messageAs: "Tag Parameter is Invalid.")
                // call success callback
