Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phone number validation is not validating for Kuwait in iOS #374

Open
Ashok07k opened this issue Sep 2, 2022 · 1 comment
Open

Phone number validation is not validating for Kuwait in iOS #374

Ashok07k opened this issue Sep 2, 2022 · 1 comment

Comments

@Ashok07k
Copy link

Ashok07k commented Sep 2, 2022

I am trying to validate a Phone number of Kuwait country it is always returning false for this series but in android it working returning true, which is correct. Is there any other way to solve this.

       guard let phoneUtil = NBPhoneNumberUtil.sharedInstance() else {
               return
         }

        do {
            let phoneNumber: NBPhoneNumber = try phoneUtil.parse("41442429", defaultRegion: "KW")
            print("IsValidPhoneNumber ==> \(phoneUtil.isValidNumber(phoneNumber) ? "YES": "NO")")
            
        }
        catch let error as NSError {
            print(error.localizedDescription)
        }
@Ashok07k Ashok07k changed the title Phone number validation is not working for Kuwait Phone number validation is not validating for Kuwait in iOS Sep 2, 2022
@ssbaochiweixiao
Copy link

I also encountered this problem. Do you have a specific solution now? My number is true in web page verification, but it becomes false in ios project. Do you have a solution now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants