Hi!
I'm creating an app like this:
- Using Image Tracking to set world anchor in real world first.
- The timeline in Reality Composer Pro scene needs to be played in same time(for the people in same place using the app).
- 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.
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.