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

Invalid Australian phone number #387

Open
pedrosilva88 opened this issue Feb 14, 2023 · 2 comments
Open

Invalid Australian phone number #387

pedrosilva88 opened this issue Feb 14, 2023 · 2 comments

Comments

@pedrosilva88
Copy link

My app is trying to validate this number 0567 427 942 by using this:
[phoneUtil isValidNumber:[phoneUtil parse:"0567427942" defaultRegion:"AU" error:&error]]

But I'm receiving as invalid, but we know that this number is in fact an Australian Phone Number.
We also tried to change the 0 for the country code 61, but without success we keep receiving this as invalid.

Can you help me with this?

@darkengine
Copy link

Having the same issue with the 0493 number in Australia. It's an issue with libPhoneNumber, not platform specific, we tested with Android and Golang libPhoneNumber and they failed too.

@pedrosilva88
Copy link
Author

I've started using this SPM Package. It fixed my problem.
https://github.com/marmelroy/PhoneNumberKit

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