If I use UIWebView to display the phone number and set the type of data detector to UIDataDetectorTypePhoneNumber, then when I click on its possible number to call.
At the end of the phone call, I will return to my application.
However, if I try to programmatically invoke a phone application using
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:123456789"]];
or
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://123456789"]];
Then, after the call is completed, it is impossible to return to my application.
Is it possible to be able to programmatically launch the application for the phone, and then return to my application after the call is completed, just as if the user clicked on the number in UIWebView?
source share