Skip to content
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

Cannot get countrycode in ios #14

Open
congfandi opened this issue Jul 26, 2023 · 0 comments
Open

Cannot get countrycode in ios #14

congfandi opened this issue Jul 26, 2023 · 0 comments

Comments

@congfandi
Copy link

  Future<void>_tryGetCountryCode()async {
    try {
      final countryCode = await FlutterSimCountryCode.simCountryCode;
      if (countryCode == null) {
        return;
      }
      print("selected phone code $countryCode ");
      // currentCountryCode = countryCode;
    } catch (e) {
      return;
    }
  }

this code always retur -- in ios, but workinug well in android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant