intl_phone_number_input
intl_phone_number_input copied to clipboard
Invalid country code error
Hi, I am getting the following error in the iOS platform. Not in Android Error: The country code is invalid. Code: 1
Plugin version 0.7.2
Flutter version Flutter 3.3.2
After encountering the bug, I dig into plugin code for Android and ios. In Android, if the user has not provided any region code then It will try to find the country code by another possible solution(method maybeExtractCountryCode()
). But in the iOS case, if the user has not provided the region code then it will throw an invalid country code error.
Hi, I have the same issue. Only on the IOS.
Same here
Same here
Same here
Verified locally that this issue is fixed by https://github.com/natintosh/plugin_libphonenumber/pull/21/files.
We need to upgrade the libphonenumber_plugin
lib to 0.3.1
, and remove the deprecated getNameForNumber
method.
@natintosh if you are busy, I can make open a PR for this
Verified locally that this issue is fixed by https://github.com/natintosh/plugin_libphonenumber/pull/21/files. We need to upgrade the
libphonenumber_plugin
lib to0.3.1
, and remove the deprecatedgetNameForNumber
method. @natintosh if you are busy, I can make open a PR for this
@natintosh what do you think?
Any news on getting this merged, I encountered this issue and had to add a dependency override to get around it
@chiptech-mitchell the owner has updated the dependency in the latest release
@ashley-arta Oh ok cool so it's fixed in 0.7.3+1?, that's good to hear I saw your open PR and just thought it wasn't fixed yet.