Lenard Emil
Lenard Emil
I have the same problem. On getRegionInfoFromPhoneNumber has flutter: PlatformException(1, The country code is invalid., null, null) on iOS. On Android works fine.
Nobody seems to care about this problem.
@bynalab thanks, i found the problem, is in phone_number.dart the regionInfo.regionPrefix is the same with regionInfo.isoCode on iOS.
The quiq fix for me was to change in library: Changes in: input_widget.dart line 184 From: "String phoneNumber = await PhoneNumber.getParsableNumber(widget.initialValue!);" To: "String phoneNumber = widget.initialValue!.parseNumber();" Changes in: SwiftLibphonenumberPlugin.swift line...
> @emillenard @hrishikeshpujari1902 How to apply the fix the the swift file? Where is it? We need urgent fix in production. Is there a previous version which works fine? @hrishikeshpujari1902...