Problem with a call button - doesn't open tel:// URL
Posted
by
Christophe Konig
on Stack Overflow
See other posts from Stack Overflow
or by Christophe Konig
Published on 2010-04-12T20:38:31Z
Indexed on
2011/11/14
9:51 UTC
Read the original article
Hit count: 275
iphone
I am trying to make a call button that will call 18 which is Fire Dept in France.
So my code is :
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://18"]];
It doesn't work and I get this message in the console :
< warning > Ignoring unsafe request to open URL tel://18
But I saw other application that have the same button fully working !
I am trying this on the device of course.
What am I missing ?
© Stack Overflow or respective owner