Issue with Sharing Spatial Anchors in Meta XR SDK v. 66
Hello,
I am encountering an issue with spatial anchors in my application using Meta XR SDK v. 66 on Quest 3. My application allows one user to create a spatial anchor and share it with other users in the session. However, the users who receive the shared spatial anchor are unable to share the same anchor using ShareAsync, despite successfully loading (LoadUnboundSharedAnchorsAsync) and saving (SaveAnchorsAsync) the anchor beforehand.
Previously, with Meta XR SDK v. 60, I could do this without any issues by saving the anchor to the cloud before sharing using the now obsolete method:
OVRSpatialAnchor.SaveOptions saveOptions;
saveOptions.Storage = OVRSpace.StorageLocation.Cloud;
_spatialAnchor.Save(saveOptions, (spatialAnchor, isSuccessful) => { ... });
Since updating to Meta XR SDK v. 66 and the latest Quest 3 software, and switching to the new async SSA methods, only the user who originally created the anchor can share it. For other users, the OVRSpatialAnchor.ShareAsync method fails with error code -1006.
Here is a summary of the steps I am following:
- User A creates a spatial anchor and saves it using OVRSpatialAnchor.SaveAnchorsAsync.
- User A shares the anchor using OVRSpatialAnchor.ShareAsync.
- User B receives and successfully loads the shared anchor using OVRSpatialAnchor.LoadUnboundSharedAnchorsAsync.
- User B successfully saves the anchor using OVRSpatialAnchor.SaveAnchorsAsync.
- User B attempts to share the anchor but OVRSpatialAnchor.ShareAsync fails with error code -1006.
I have verified that I am correctly adding the OVRSpaceUsers when sharing the anchors. The app has also been correctly configured on Oculus Developer Dashboard, and Share Point Cloud Data is enabled on all devices.
Any guidance or solutions to resolve this issue would be greatly appreciated.
Thank you!
