-
Notifications
You must be signed in to change notification settings - Fork 522
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 on IOS does not work with country code #379
Comments
I face this issue too, happen when the input comes without country code, no issue before this. And I have made a few assumption on the input, and found out the bug below
Printing the parsed phone number props property returns [+6011xxxxxxxx, MY, MY] My guess is that the new PhoneNumberKit is validating wrong input field, and thus returning wrong |
for fix use older dependency, problem is not in this package: dependency_overrides: |
it worked well but is there another solution or this the only thing i can do ? |
This does not sounds like a long-term fix since we would be stuck with the old dependency and its transitive dependencies. |
I used the last version of intl_phone_number_input (0.7.3+1) and overrode the libphonenumber_plugin to the latest (0.3.1) and the seems to be the best fix until the PR #375 is merged and new version is released. |
thanks for your help |
Describe the bug
On getRegionInfoFromPhoneNumber has flutter: PlatformException(1, The country code is invalid., null, null) on iOS.
On Android works fine
Package version
last version
Flutter version
3.0.5
The text was updated successfully, but these errors were encountered: