phone_number
phone_number copied to clipboard
iOS 16.4 carrierRegionCode returns "--"
Is there an existing issue for this?
- [x] I have searched the existing issues
Package/Plugin version
1.0.0
Flutter doctor
Flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.12, on macOS 13.3 22E252 darwin-x64, locale fr-FR)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.78.0)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
Minimal code example
Code sample
final _plugin = PhoneNumberUtil();
String code = await _plugin.carrierRegionCode();
print(code); // "--"
Current Behavior
On iOS 16.4.1 (a), carrierRegionCode
returns "--". It was returning a correct value before.
I'm not sure when it's stop working. With iOS 16, it was fine, probably with iOS 16.1 too. I think issue appears around iOS 16.2 or 16.3.
It's still working on latest iOS 15 version, iOS 15.7.4, and on my Android 11, 12, 13.
Expected Behavior
Returns a correct value.
Steps To Reproduce
- Run minimal code example
- You can see the print value "--"
Aditional information
No response
Perhaps this is related to https://github.com/marmelroy/PhoneNumberKit/issues/626?
Take a look on this package. I think that would be a nice replacement
I don't know if is a profit thing still maintain this plugin. I comment here:
- https://github.com/natintosh/intl_phone_number_input/discussions/201#discussioncomment-5743946
- https://github.com/bottlepay/flutter_libphonenumber/issues/44