Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sim_info sometimes is unworkable #22

Open
kenyu-yu opened this issue Jan 14, 2021 · 2 comments
Open

sim_info sometimes is unworkable #22

kenyu-yu opened this issue Jan 14, 2021 · 2 comments

Comments

@kenyu-yu
Copy link

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;

});

}

@kenyu-yu
Copy link
Author

I got the error description as the below.
How can I solve the issue?

2021-01-14 18:05:23.674190+0800 Runner[4201:1355438] [Client] Updating selectors after delegate removal failed with: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service on pid 91 named com.apple.commcenter.coretelephony.xpc was invalidated from this process." UserInfo={NSDebugDescription=The connection to service on pid 91 named com.apple.commcenter.coretelephony.xpc was invalidated from this process.}

@Vipul-Garg16
Copy link

I also getting this same problem in ios OS 14.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants