Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

[WWDC25] For GuessTogether, can you initiate a FaceTime call via the custom SharePlay button?

Hello,

For GuessTogether source code, it seems like the code assumes that you're already in a FaceTime call before pressing the custom SharePlay button (labeled "Play Guess Together"). If not already on a FaceTime call, my Apple Vision Pro and the visionOS simulator both do nothing after throwing warnings. Is this intended behavior?

If so, how do I make it so that pressing the button can also initiate FaceTime calls? Is this allowed?

Thank you!

For more information:

In this link, it says

Activity activation

If your app implements a custom SharePlay button, confirm that your app supports initiating an activity when there isn’t an active FaceTime call. For visionOS, update the button’s action handler to always call activate(), which now presents the new Share Window menu, and remove any checks for isEligibleForGroupSession that guard activating the activity.

So for GuessTogether, I changed the code in SharePlayButton.swift to:

            Button(text, systemImage: "shareplay") {
                Task.detached {
                    do {
                        _ = try await activity.activate()
                    } catch {
                        print("Error activating activity: \(error)")
                            
                        Task { @MainActor in
                            isActivationErrorViewPresented = true
                        }
                    }
                }
            }
            .tint(.green)

This should bring up the Share menu right? However, this button does nothing.

It appears activity.activate() returns false. How can it return true and start a share menu like the system SharePlay button?

[WWDC25] For GuessTogether, can you initiate a FaceTime call via the custom SharePlay button?
 
 
Q