Chert
Back to Writing

How to open FaceTime from a SwiftUI app

Chert TeamProduct and engineering

A support screen has a familiar job: the customer taps “Call support,” FaceTime opens, and the customer decides whether to call. For a SwiftUI app, that button can be a Link with a FaceTime URL. You don’t need to provision a backend line to hand an address to someone’s device.

A FaceTime button in SwiftUI

Replace the example address with a support address registered for FaceTime. Keeping the destination fixed makes it easy to check what the button will open. The optional binding handles a malformed URL without crashing the view.

import SwiftUI

struct SupportCallButton: View {
    var body: some View {
        if let address = URL(string: "facetime:support@example.com") {
            Link("FaceTime support", destination: address)
        }
    }
}

SwiftUI’s Link passes the URL to the system. Apple’s archived FaceTime URL reference documents facetime: for a video call and facetime-audio: for an audio call on iOS. For an audio-only support button, change the scheme and the label so the user knows what will happen. Try both on a physical device with FaceTime configured.

Can Swift tell whether a contact uses FaceTime?

UIApplication.shared.canOpenURL(_:) checks the device running your app for a handler for the URL scheme. A true result for facetime:support@example.com tells you that the device can open FaceTime. The result says nothing about whether that email address is registered, online, or able to answer. If your app calls canOpenURL, declare the schemes it queries in LSApplicationQueriesSchemes in its Info.plist. An undeclared scheme can produce a false result. Apple’s canOpenURL reference.

For a contact screen, label the action “Call with FaceTime” and let the person choose an address. Only show an availability badge if you have a separate, reliable source for that status.

What should the app record?

If you instrument the button, record the tap as a request to open FaceTime. Someone can still cancel, the recipient may be unavailable, or the call may go unanswered. The link does not return a call ID or an answered event to your app. For a support ticket, leave the case open until the customer or support team confirms the outcome.

When the server needs to make the call

Now change one detail: the customer books a callback for tomorrow. At the booked time, the app might be closed. Your backend needs to place a call, connect an agent, and know when to clean up. That requires a calling service with lifecycle events. With Chert, your backend selects a provisioned line and provides a LiveKit room. The returned call ID lets your service follow that attempt through pickup or failure. See a backend FaceTime request and response.

Related guides

Build your first conversation.

Choose a plan, connect your agent, and test the complete flow.

Start building