Jakub
Jakub

Reputation: 13860

Return to my App after make a call

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

Answers (3)

Manju
Manju

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

Mudit Bajpai
Mudit Bajpai

Reputation: 3020

Try this.......

 UIWebView *callWebview = [[UIWebView alloc] init];   
    NSURL *telURL = [NSURL URLWithString:[NSString stringWithFormat:@"tel://%@", phoneNumber]
   [callWebview loadRequest:[NSURLRequest requestWithURL:telURL]];

Upvotes: 2

Nikolai Ruhe
Nikolai Ruhe

Reputation: 81848

There's no way to do that without jailbreaking.

Upvotes: 0

Related Questions