-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Hi,
my test device : iphone 11 / iOS 14.3
when I called sim_info in flutter to get sim info, sometimes I got the null result. Once I retry again, it is workable to get correct sim info. It is so strange.
here is my source code
=============source code =========================
Future getSimInfo() async {
print("starting getSimInfo");
String allowsVOIP = await SimInfo.getAllowsVOIP;
String carrierName = await SimInfo.getCarrierName;
String isoCountryCode = await SimInfo.getIsoCountryCode;
String mobileCountryCode = await SimInfo.getMobileCountryCode;
String mobileNetworkCode = await SimInfo.getMobileNetworkCode;
print("mobileCountryCode:$mobileCountryCode, mobileNetworkCode:$mobileNetworkCode");
setState(() {
_allowsVOIP = allowsVOIP;
_carrierName = carrierName;
_isoCountryCode = isoCountryCode;
_mobileCountryCode = mobileCountryCode;
_mobileNetworkCode = mobileNetworkCode;
});
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels