Post

Replies

Boosts

Views

Activity

Reply to About "SIMInserted" API
@yusuke-murata i dont understand why we need to mention MCC and MNC in info.plist? is there any document showing this? I am using this following code, same it always returning No SIM card detected. my environment as follows, xcode Version 16.0 beta 3 (16A5202i) iOS: 18.0 (22A5307i) beta 3 // check iOS 18 if #available(iOS 18.0, *) { let subscriber = CTSubscriber() do { if subscriber.isSIMInserted { return "SIM card is inserted." } else { return "No SIM card detected." } } catch { return "Error determining if SIM is inserted: \. (error.localizedDescription)" } }
Jul ’24
Reply to Usage of IsSIMInserted in iOS 18
In addition, in iOS 12 to iOS 15, try detecting sim change using the following code, guard let self = self else { return } let simStatus = self.checkSimAvailability() DispatchQueue.main.async { self.infolabel.text = "System OS : \(self.systemVersion) \n\n \(simStatus)" self.showSimChangedAlert() } } if the new sim is same network provider then i am not getting triggered. Is this expected? whereas if new and old sim are different provider yeah this function triggers as expected. Please consider this question as well. thanks in advance.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’24