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?
Your URI is incorrect. Correct one is "tel:1234567890". See RFC3966. Also, check Apple docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With