Overview
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)