Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make a FaceTime audio call from my app

Tags:

ios

ios7

facetime

I have a phone number or email address associated with a FaceTime account how can I initiate a FaceTime audio call from within my app?

like image 215
user1542125 Avatar asked Feb 13 '23 01:02

user1542125


2 Answers

Turns out the url scheme is facetime-audio://

Thanks for the response above but that url scheme is for FaceTime video, not audio as requested.

like image 126
user1542125 Avatar answered Feb 16 '23 04:02

user1542125


You can use Apple's Facetime URL Scheme for this

URL Schemes:

// by Number
facetime://14085551234

// by Email
facetime://[email protected]

Code :

NSString *faceTimeUrlScheme = [@"facetime://" stringByAppendingString:emailOrPhone];
NSURL    *facetimeURL       = [NSURL URLWithString:ourPath];

// Facetime is available or not
if ([[UIApplication sharedApplication] canOpenURL:facetimeURL])
{
    [[UIApplication sharedApplication] openURL:facetimeURL];
}
else
{
    // Facetime not available
}
like image 32
Midhun MP Avatar answered Feb 16 '23 03:02

Midhun MP