Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a call which begin with * in iPhone?

In my application, I want to call the number *111, when I use this URL tel:*111 to call, but can't make call success, please give me some indicate, thank you very much.

[[UIApplication sharedApplication] openURL:@"tel:*111"] 

was not work. but it will work when remove *:

[[UIApplication sharedApplication] openURL:@"tel:111"];
like image 976
G-Power Avatar asked Dec 04 '25 17:12

G-Power


1 Answers

It's not possible. From the Apple URL Scheme Reference:

To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account, the Phone application supports most, but not all, of the special characters in the tel scheme. Specifically, if a URL contains the * or # characters, the Phone application does not attempt to dial the corresponding phone number.

like image 99
Ole Begemann Avatar answered Dec 06 '25 08:12

Ole Begemann



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!