[App synchronization] I have a question about synchronizing Vision Pro app contents.

Hi!

I'm creating an app like this:

  1. Using Image Tracking to set world anchor in real world first.
  2. The timeline in Reality Composer Pro scene needs to be played in same time(for the people in same place using the app).
  3. People using the app will see the same contents in same position in same time in same place.

I already made Image Tracking feature worked. But the big problem is "Synchronization". I found Group Activities and TabletopKit to solve the problem. But I don't know if this are the right modules for this project.

How do I solve this problem technically? If you have ideas, please let me know. I really need help for this.

Answered by Vision Pro Engineer in 815468022

Hi @PLAY4

In visionOS, TabletopKit and GroupActivities are only for shared experiences over FaceTime. However, you can use peer to peer connectivity to sync app state. Here are some tips:

There are 2 frameworks you can use for peer to peer connectivity.

Building a custom peer-to-peer protocol is a sample code project for Network. I couldn't find sample code for Multipeer Connectivity, but it's been around for a while so there should be plenty of samples online.

If you run into latency issues take a look at this post.

This post discusses syncing a timeline animation's playback.

Accepted Answer

Hi @PLAY4

In visionOS, TabletopKit and GroupActivities are only for shared experiences over FaceTime. However, you can use peer to peer connectivity to sync app state. Here are some tips:

There are 2 frameworks you can use for peer to peer connectivity.

Building a custom peer-to-peer protocol is a sample code project for Network. I couldn't find sample code for Multipeer Connectivity, but it's been around for a while so there should be plenty of samples online.

If you run into latency issues take a look at this post.

This post discusses syncing a timeline animation's playback.

[App synchronization] I have a question about synchronizing Vision Pro app contents.
 
 
Q