Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IOS6.0 UIWebView Scheme of Tel:

I found an UIWebview Change between IOS 5.0 and IOS 6.0

If You use [UIWebview loadRequest] for Callout a number and give a url string like @"tel://02-1234567,123".

It's working fine in IOS5.0 but NOT in IOS 6.0

I try to override this function

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType

I found My Request String become "file://tel://02-1234567,123".

The Scheme I Got is @"file://" not @"tel://" and I can't make a phone call.

If I simply use a number without extension like @"tel://02-1234567",It's working fine.

In Some reason I couldn't say,I can't use [UIApplication sharedApplication] OpenUrl to make a phone call.

Does any one have the same problem?

like image 787
menshiid Avatar asked Nov 24 '25 01:11

menshiid


1 Answers

Your URI is incorrect. Correct one is "tel:1234567890". See RFC3966. Also, check Apple docs.

like image 81
thom_ek Avatar answered Nov 25 '25 19:11

thom_ek



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!