carrier_info
4.0.0, released 14 days ago by codenka.com
Gets network type, carrier codes, and SIM info on Android and iOS.
What it does
Retrieves mobile network details, SIM insertion status, signal strength, and operator information from Android and iOS devices. It uses Pigeon for platform communication and provides unified summaries as well as platform-specific info.
AI-written summary of version 4.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to detect network generation like 5G or LTE in your app.
- You need to read SIM card details or check if a SIM is inserted.
- You need device carrier network codes and country codes.
Skip it when
- You target iOS 16.0+ and strictly require carrier names and country codes, which Apple has deprecated.
- You are building a web or desktop application.
Strengths
- Provides a unified summary method across both Android and iOS.
- Supports dual-SIM and eSIM information retrieval.
- Gracefully handles missing permissions by returning empty fields rather than failing.
Weaknesses
- iOS 16.0+ deprecates carrier-specific info like carrier name and country codes due to platform limitations.
- Requires platform-specific permission setups and runtime requests.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 1
Requires adding permissions to AndroidManifest.xml (such as READ_PHONE_STATE, ACCESS_FINE_LOCATION) and requesting runtime permissions.
final summary = await CarrierInfo.getSummary();
for (final sim in summary.sims) {
print('${sim.carrierName} ${sim.mobileCountryCode}');
}Alternatives
Packages that do the same job and could replace carrier_info.
- memory_info
Get device RAM and disk storage information on Android and iOS.
74Compare - platform_device_id
Get unique device IDs across Android, iOS, Windows, Linux, macOS, and Web.
50Compare - system_info_plus
A flutter plugin to get device RAM size.
73Compare - corner_radius_plugin
Flutter plugin to read device screen corner radii on Android and iOS
69Compare