According to Apple’s documentation, in order to make phone call from my app, I need to implement the following protocols:
HTML link:
<a href="tel:1-408-555-5555">1-408-555-5555</a>
Native application URL string:
tel:1-408-555-5555
However, upon completion of a phone call initiated from an HTML link inside a UIWebView, I am redirected right back to my application. But upon completion of a phone call made from a native application URL string, my iphone stays in the iphone’s regular phone application, and if I want to return to my application I have to do so manually.
As far as I can tell from reading what others have said, there is no way to change this behavior.
Here is my question:
- Is it true that it’s impossible
to return to an application after
making a phone call from a native
application URL string? - Would there be any downside to
implementing a UIWebView instead of
a UILabel in situations where I
really wanted the user to be
redirected back to my application
after completing a phone call?
Behavior does differ between calling
-[UIApplication openURL:]with atel:URL, and clicking a link to the same URL in aUIWebView.Using a
UIWebViewinstead of a UILabel might have some downsides, but you don’t have to actually display theUIWebViewto get itstelURL handling behavior. Instead, just load atelURL request in an instance of UIWebView without adding it to your view hierarchy.For example: