Alex Rivera | Logout

problem using tel: URL to initiate a call

Asked 2009-05-01T17:00:57.647
32

I'm trying to initiate a call from within an iPhone app.

This related code works and opens Safari as expected:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.apple.com"]];

But, when I replace the http URL with a tel URL the resulting code does not invoke the phone app:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:3035551212"]];

No exceptions or alerts are generated (in the simulator or on a device).

Any idea what the problem might be with my invocation?

Thanks.

Edit
Report

1 Answer

5

If your phone number has ( or ) in it, the Phone app will not launch.

answered 2010-12-06T07:38:48.943

Your Answer