In iOS6 I am not able to make a call passing from UIWebView.
I use UIWebView because my app needs to come back after user close call, that is not possible using UIApplication method.
This the original code:
NSURL *telURL = [NSURL URLWithString:@"tel://%@", escapedPhoneNumber];
_PhoneCallWebView = [[UIWebView alloc] init];
[_PhoneCallWebView loadRequest:[NSURLRequest requestWithURL:telURL]];
Why iOS won’t start a call?
NOTE: In all other iOS, starting from 3.1 to <6 works correctly.
Using [UIApplication sharedApplication] openURL:telURL] it works but the app remain closed after call.
Are you sure you should be routing phone calls through a
UIWebView?I have no experience with this type of thing but maybe you could try using the
NSURLConnectionclass? It has an instance method-initWithRequest:delegate:startImmediately:that might work in your case.