Skip to content

Cannot get countrycode in ios #14

@congfandi

Description

@congfandi
  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

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