Tel Uri containing * and # is not working on iOS 15 and onwards

Tel uris containing * and # are not working on iOS 15 and onwards. When I try to execute the following statement

[[UIApplication sharedApplication] openURL: @"tel://*21*12345#" options:@{} completionHandler:nil];

It didn't show anything on the device. I also try to encode it but it didn't work.

Replies

It's been a very long time since I've done anything in objective-c so please forgive me if I am a bit off. My understanding is that openURL was deprecated in iOS 12.0 (I think). You could try something like this to see if it works for you. This if from a function where the number is passed in as a string.

if let phoneCallURL = URL(string: "tel://2112345#") {       let application:UIApplication = UIApplication.shared       if (application.canOpenURL(phoneCallURL)) { application.open(phoneCallURL, options: [:], completionHandler: nil)       }      }     }

Good luck!

  • it seems they fixed it again in 15.5 Beta 3

Add a Comment

Sounds like the same issue discussed in this thread.

it seems they fixed it again in 15.5 Beta 3