Search packages, repositories and app categories

Package detailsv0.1.2

flutter_sim_country_code

Flutter sim country code

AndroidiOS
30-day downloads
363
Likes
49
Pub points
130

Install package

flutter pub add flutter_sim_country_code

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package that retrieves the country code associated with the SIM card currently inserted in an Android or iOS device. It provides a simple API to access the MCC (Mobile Country Code) and MNC (Mobile Network Code), enabling apps to determine the user's current network country. This is useful for localization, billing, or region-specific content delivery based on the active SIM. The package supports both Android and iOS platforms and integrates seamlessly into existing Flutter projects.

Use cases

  • Detecting user's country via SIM card
  • Auto-setting locale based on SIM country
  • Region-based content filtering
  • SIM-based authentication workflows
  • Network provider identification

Key features

  • Retrieves SIM country code from MCC/MNC
  • Cross-platform support (Android & iOS)
  • Simple, lightweight API
  • No additional permissions required
  • Works without internet connection

Suitable for

  • Apps needing SIM-based geolocation
  • Travel or telecom applications
  • Localization tools
  • Billing systems using network data
  • Offline region detection

Considerations

  • Relies on SIM presence and activation
  • May not reflect actual physical location
  • Does not work on devices without SIM
  • Accuracy depends on carrier data
  • Limited to one SIM per device (in dual-SIM devices, may return first SIM)

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_sim_country_code

This is a simple plugin that gets the ISO country code from the SIM card to get a more accurate locale, since the system locale is dependent on the phone language.

Getting Started

  1. Install the plugin by adding it to your pubspec.yaml.
  2. Use FlutterSimCountryCode.simCountryCode to get the country code.

Categories

Source repository

Projects using this package

No data available yet.