Return to application after call cancellation

I want to use the telprompt:// scheme to return to my application after calling it. But I have a problem.

If the remote person is busy, two buttons are displayed to me: Redial and Cancel. Therefore, if I click Cancel, I will not return to my application. Is there any way to handle this?

P. S. Not telprompt:// in Private API?

+4
source share
2 answers

Here you can use WebView and Load Request on it.

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

I'm sure it will work with Charm .....

+1
source

I think you need:

 [[UIApplication sharedApplication] openURL: [NSURL URLWithString:[NSString stringWithFormat:@"telprompt:%@",num]]]; 
0
source

Source: https://habr.com/ru/post/1445766/


All Articles