Reputation: 13860
After my app make a call i would like to return to my app. When user hit "End" in call screen now he always see phone app. How to force app to return to my original app?
I make a call using:
NSString *phoneURLString = [NSString stringWithFormat:@"tel:%@", phoneNumber];
NSURL *phoneURL = [NSURL URLWithString:phoneURLString];
[[UIApplication sharedApplication] openURL:phoneURL]];
Upvotes: 0
Views: 749
Reputation: 4133
You can use the following code to get back to your app after making a call from your app
NSURL *url = [NSURL URLWithString:@"telprompt://phone number"];
[[UIApplication sharedApplication] openURL:url];
Upvotes: 1
Reputation: 3020
Try this.......
UIWebView *callWebview = [[UIWebView alloc] init];
NSURL *telURL = [NSURL URLWithString:[NSString stringWithFormat:@"tel://%@", phoneNumber]
[callWebview loadRequest:[NSURLRequest requestWithURL:telURL]];
Upvotes: 2