2

I'm trying to integrate Facetime in my app so basically what I would like to do is to press a button making a call and when it finishes come back to my app. I know that for the time being there are no public API for Facetime.

What I'm doing at the moment is to use Facetime scheme:

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

I have two questions:

  1. Is it possible to use in the openURL above the string "facetime://" in order to choose who I want to call in Facetime?! I tried it but what happens is that Facetime is run but without its layout so basically I see myself on the screen but I cannot do nothing.

  2. If not point 1 therefore I use for example "facetime://steve@apple.com" is it possible to come back to my app once the call is finish?! I read about multitasking but I don't know how to manage it in this situation.

Thanks in advance Alex

ubiAle
  • 445
  • 9
  • 19

1 Answers1

3

To anser your second question, NO just like when your app start a call there is no way to get your app back in the foreground after you close the call.

For your first question, you need to add the contact data (e-mail or phonenumber).

Also be aware that the facetime:// url scheme will work on any iPhone/iPod Touch even if they can't do facetime. If the device does not have facetime support it will just show a blank screen.

rckoenes
  • 69,092
  • 8
  • 134
  • 166
  • 1
    You can get back to the app after a phone call, using "telprompt:" instead of "tel:". Another way for phone calls is to use a UIWebView to execute the link - that gives the same result as "telprompt:". There does not seem to be a similar solution for Facetime though. :-( – Ricky Helgesson May 22 '12 at 14:03