Skip to main content
TriplePete
Inspiring
January 8, 2023
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.

 

 

MVRKAnswer
Participant
January 13, 2023

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

Participant
January 9, 2023

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.

MVRKAnswer
Participant
January 13, 2023

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
Inspiring
February 21, 2023

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?