Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
TriplePete's avatar
TriplePete
MHCP Member
3 years ago
Solved

Unable to save spatial anchors to cloud

Trying to share spatial anchors to other local players.

The anchor is created without problem and getting a Uuid. Can save the anchor locally without problem.

But changing to StorageLocation.Cloud results in error.

saveOptions.Storage = OVRSpace.StorageLocation.Cloud;
oVRSpatialAnchor.Save(saveOptions, (anchor, success) =>
{
Debug.Log($"WaitForAnchorInit save cloud success={success}");
});

Always results in success=false with a "Save failed" in log - no other info.

 

Activated "Share point cloud data" under "Device Permissions" in Settings on HMD without any success.

 

 

  • For anyone looking for help on this topic, I found this sample project which I've confirmed works. https://developer.oculus.com/documentation/unity/unity-ssa-sf/ 

    Try to mimic what they're doing here. The actual docs regarding shared spatial anchors don't even link this or mention it at all, and they're very insufficient. Hopefully this sample project helps shore up some of those issues.

3 Replies

  • I'm having the same issue. In my case I don't think I'm even getting a "Save failed" in my log. I'm also logging in to the presence platform if that makes a difference. Wondering If I'm missing something.

  • For anyone looking for help on this topic, I found this sample project which I've confirmed works. https://developer.oculus.com/documentation/unity/unity-ssa-sf/ 

    Try to mimic what they're doing here. The actual docs regarding shared spatial anchors don't even link this or mention it at all, and they're very insufficient. Hopefully this sample project helps shore up some of those issues.

    • Shavier's avatar
      Shavier
      Protege

      Hii! I'm trying the share spatial anchor project but when I start the Share spatial anchors scene it logs an "error" saying: "You are not authenticated to use this app. Share Spatial Anchors will not work."

      Any clue on how to solve it?