Post

Replies

Boosts

Views

Activity

Reply to [WWDC25] For GuessTogether, can you initiate a FaceTime call via the custom SharePlay button?
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.
Topic: Spatial Computing SubTopic: General Tags:
Jun ’25
Reply to Cannot Transcribe Audio During SharePlay in VisionOS
Did you end up solving this?
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Sep ’25
Reply to [WWDC25] For GuessTogether, can you initiate a FaceTime call via the custom SharePlay button?
It appears activity.activate() returns false. How can it return true and start a share menu like the system SharePlay button?
Topic: Spatial Computing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’25
Reply to [WWDC25] For GuessTogether, can you initiate a FaceTime call via the custom SharePlay button?
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.
Topic: Spatial Computing SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’25