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

isValidPhoneNumber not working well on IOS on some SG mobile number #44

Open
ScottLee97 opened this issue Feb 24, 2022 · 4 comments
Open

Comments

@ScottLee97
Copy link

Describe the bug
Some new Singapore mobile numbers(e.g. +65 8050 3530, +65 8950 3530) are invalid on IOS, but working fine on Android

Package version
libphonenumber: ^2.0.2

To Reproduce
Steps to reproduce the behavior:

bool isValid = await PhoneNumberUtil.isValidPhoneNumber(phoneNumber: 80503530 , isoCode: 'SG');
 print(isValid);

The expected behavior is to get true when printing isValid, but it returns false.

Does anyone have any suggestions to work around this? Thank you.

@moksh-mahajan
Copy link

moksh-mahajan commented Jun 24, 2022

Facing the same issue with Australian phone numbers (+61). Works well on android but gives inValid on iOS.

@Abu-muhab
Copy link

Facing the same issue with Australian phone numbers (+61). Works well on android but gives inValid on iOS.

@moksh-mahajan Were you able to come up with a solution for this?

@moksh-mahajan
Copy link

@Abu-muhab I used a different package for the validation purpose which seems to work fine.
https://pub.dev/packages/phone_number

@haoyuant
Copy link

haoyuant commented Sep 7, 2022

Having the same issue, Australian phone numbers starting with 483 are invalid.

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

4 participants