My App try to call via tel: scheme for USSD, it worked on iOS 15.3 and earlier but doesn't work on iOS 15.4 beta.
let number = "10*10#" // Doesn't work. // let number = "1234" // This is Okay. guard let url = URL(string: "tel:" + number), UIApplication.shared.canOpenURL(url) else { fatalError() } UIApplication.shared.open(url, options: [:]) { success in print("success: \(success)") // This is true }
canOpenUrl()
returns true, which means now we can call open() method.
But nothing happens when we call open(url: options: completion:).