Skip to content

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

@ScottLee97

Description

@ScottLee97

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions