carrier_info_v3

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

carrier info v3

📱 Carrier Info V3 #

Imp , just a mere fork of original carrier_info to support on flutter 3x with latest gradle settings


Carrier Info gets networkType, networkGeneration, mobileCountryCode, mobileCountryCode, e.t.c from both android and ios devices. It's a port from this js project and an improvement on the existing flt_telephony_info package.
📸 Screen Shots #



allowsVOIP (iOS only) #
bool carrierInfo = await CarrierInfo.allowsVOIP; // Indicates if the carrier allows VoIP calls to be made on its network.
copied to clipboard

If you configure a device for a carrier and then remove the SIM card, this property retains the Boolean value indicating the carrier’s policy regarding VoIP.
Always return true on Android.

carrierName #
String carrierInfo = await CarrierInfo.carrierName; // The name of the user’s home cellular service provider.
copied to clipboard

This string is provided by the carrier and formatted for presentation to the user. The value does not change if the user is roaming; it always represents the provider with whom the user has an account.
If you configure a device for a carrier and then remove the SIM card, this property retains the name of the carrier.
The value for this property is 'nil' if the device was never configured for a carrier.

isoCountryCode #
String carrierInfo = await CarrierInfo.isoCountryCode; // The ISO country code for the user’s cellular service provider.
copied to clipboard

This property uses the ISO 3166-1 country code representation.
The value for this property is 'nil' if any of the following apply:

The device is in Airplane mode.
There is no SIM card in the device.
The device is outside of cellular service range.



mobileCountryCode #
String carrierInfo = await CarrierInfo.mobileCountryCode; //The mobile country code (MCC) for the user’s cellular service provider.
copied to clipboard

MCCs are defined by ITU-T Recommendation E.212, “List of Mobile Country or Geographical Area Codes.”
The value for this property is 'nil' if any of the following apply:

There is no SIM card in the device.
The device is outside of cellular service range.


The value may be 'nil' on hardware prior to iPhone 4S when in Airplane mode.

mobileNetworkCode #
String carrierInfo = await CarrierInfo.mobileNetworkCode // The mobile network code (MNC) for the user’s cellular service provider.
copied to clipboard

The value for this property is 'nil' if any of the following apply:
There is no SIM card in the device.
The device is outside of cellular service range.
The value may be 'nil' on hardware prior to iPhone 4S when in Airplane mode.

networkGeneration #
String carrierInfo = await CarrierInfo.networkGeneration // 5G, 4G ... 2G
copied to clipboard
radioType #
String carrierInfo = await CarrierInfo.radioType // LTE, HSDPA, e.t.c
copied to clipboard
cid (Android only) #
int carrierInfo = await CarrierInfo.cid // Cell Id, only on android for now, returns null on iPhone
copied to clipboard
lac (Android only) #
int carrierInfo = await CarrierInfo.lac // Local Area Code, only on android for now, returns null on iPhone
copied to clipboard
✨ Contribution #
Lots of PR's would be needed to make this plugin standard, as for iOS there's a permanent limitation for getting the exact data usage, there's only one way around it and it's super complex.
carrier_info_v3 #
carrier_info_v3 #

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.