                     }
                 }
             } else{
-                self.push.registerWithDeviceToken(deviceToken: deviceToken, WithUserId: CDVBMSPush.pushUserId) { (response, statusCode, error) -> Void in
+                BMSPushClient.sharedInstance.registerWithDeviceToken(deviceToken: deviceToken, WithUserId: CDVBMSPush.pushUserId) { (response, statusCode, error) -> Void in
                     
                     if (!error.isEmpty) {
                         let message = error.description

                return
            }
            let tagsArray = [tag]
            self.push.subscribeToTags(tagsArray: tagsArray as NSArray, completionHandler: { (response, statusCode, error) -> Void in
                
                if error.isEmpty {
                    

    
            
            if CDVBMSPush.pushUserId.isEmpty{
                BMSPushClient.sharedInstance.registerWithDeviceToken(deviceToken) { (response, statusCode, error) -> Void in
                    
                    if error.isEmpty {
                        
