Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What’s the correct URL for placing a call on an iPhone?

Tags:

xcode

iphone

Is the code for calling on the iPhone automatically

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:11111111111"]]);
like image 316
Jick Lick Avatar asked Nov 09 '12 10:11

Jick Lick


2 Answers

Your second line is fine and will work.

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://1111111111"]]);
like image 117
Janak Nirmal Avatar answered Oct 27 '22 14:10

Janak Nirmal


From trying on an iPhone, tel://123456789 is the way to go. The tel:123456789 option is not even recognized, at least by the Safari URL bar.

like image 20
zoul Avatar answered Oct 27 '22 13:10

zoul