Open kevindupas opened 1 year ago
Sorry for the late reply...
I can reproduce this issue on my end. This plugin works as expected on iOS 16.3.1 but no longer works on iOS 16.4.
Unfortunately, after some investigation, I have bad news to share:
I found the following comments in the CTCarrier.h
file:
To provide some context, this plugin uses Core Telephony CTCarrier
API provided by Apple under the hood to retrieve the SIM card information.
Now, it seems that Apple does not allow us to do so... I suspect it is due to privacy reasons...
Until Apple re-adds this feature for developers, I don't think there is much we can do for now.
@kevindupas hi kevin did you found any workaround ?
@jonz94 any updates ?
Error getting SIM info: [Error: "Sim" plugin is not implemented on web]
getting this error!!! ? @jonz94
Error getting SIM info: [Error: "Sim" plugin is not implemented on web]
getting this error!!! ? @jonz94
@officialomkarjadhav
This sim card plugin only work when running the app as native android/ios app.
Because it is not possible to get sim card information on the web platform.
@sinanverve7 Currently, it is not possible to get SIM card information on iOS 16.4+ because Apple does not allow it.
I am still looking for an alternative way to achieve the same goal, but right now, it seems like there is no hope to make it work.
Error getting SIM info: [Error: "Sim" plugin is not implemented on web] getting this error!!! ? @jonz94
@officialomkarjadhav
This sim card plugin only work when running the app as native android/ios app.
Because it is not possible to get sim card information on the web platform.
thank you for your reply but i am using it in react native -expo not in web @jonz94
@officialomkarjadhav Would you like to open a new issue and provide more details? I believe your issue is not related to the original issue of this thread. Thank you!
P.S. I'm not familiar with "React Native / Expo" development, so I'm not sure if using a capacitor plugin in a React Native project is a good idea or not.
@jonz94 - Is there alternate way to do it? I've seen one financial app that could check if the SIM card was present or not. Does Apple have something special provision for financial apps, like a Private-API access?
Any update on this.
Unable to Retrieve SIM Card Information on iOS Version 16.4.1
Description:
On iOS version 16.4.1, it has become impossible to retrieve the SIM card information using the
getSimCards()
function. This issue affects iPhone 12 with iOS 16.4.1. The function works correctly on iPhone 12 with iOS 16.3.1.Relevant Information:
iPhone 12 - iOS Version: 16.4.1 (Issue occurs)
{"simCards":[{"mobileCountryCode":"65535","mobileNetworkCode":"65535","carrierName":"--","allowsVOIP":true,"isoCountryCode":"--"},{"mobileCountryCode":"65535","allowsVOIP":true,"carrierName":"--","isoCountryCode":"--","mobileNetworkCode":"65535"}]}
iPhone 12 - iOS Version: 16.3.1 (Works as expected)
{"simCards":[{"carrierName":"","isoCountryCode":"","mobileCountryCode":"","mobileNetworkCode":"","allowsVOIP":true},{"isoCountryCode":"fr","carrierName":"Orange France","mobileNetworkCode":"01","mobileCountryCode":"208","allowsVOIP":true}]}
iPhone XR - iOS Version: 16.3.1 (Works as expected)
{"simCards":[{"isoCountryCode":"fr","carrierName":"Orange France","mobileNetworkCode":"01","mobileCountryCode":"208","allowsVOIP":true},{"carrierName":"","isoCountryCode":"","mobileCountryCode":"","mobileNetworkCode":"","allowsVOIP":true}]}
Code Example:
Please help me fix this issue on the latest iOS version.