Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 4.2 - Return to app after phone call

Tags:

ios

iphone

I can successfully initiate a phone call within my app using the following:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://123456789"]]; 

However, is it possible to automatically return back to the app once the phone call has been terminated? It seems this was not possible under iPhone OS 3.0 but I am hoping it is now possible under iOS 4.2 with multitasking (I wasn't able to find any information on this question specific to iOS 4.2).

Thanks in advance for any assistance!

like image 807
Skoota Avatar asked Feb 17 '11 11:02

Skoota


People also ask

How do I see apps while calling on iPhone?

Go to the Home Screen, then tap an app icon to open the app. To return to the FaceTime screen, tap the green bar (or the FaceTime icon) at the top of the screen. You can also share your screen with the other people in your FaceTime call while using another app. See Share your screen in a FaceTime call.


1 Answers

I know the question is very old, but currently you can do this (at least on iOS 5) by using telprompt://, like:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://123456789"]]; 

iPhone will show alert view confirmation and when call ends, your app shows again, instead of iPhone's call app.

like image 77
frin Avatar answered Sep 18 '22 12:09

frin