Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Shavier's avatar
Shavier
Protege
2 years ago
Solved

Share spatial anchors example doesn't work

I'm trying to use the Share spatial anchors provided in the oculus repository:
https://github.com/oculus-samples/Unity-SharedSpatialAnchors 

But when I start the app and enter the Share Spatial Anchors scene, it shows on the log window: "You are not authenticated to use this app. Shared Spatial Anchors will not work."

Reading the code it seems that the application is not getting the oculus user id correctly, but everyone is saying on forums that the project works, so I don't know if im missing something related to the user on the quest 2 or something...

  • I think you also need to config the Data Use Checkup in the developer manager - and at least Request access for UserID.

20 Replies

Replies have been turned off for this discussion
  • I think you have to create the application in the Meta Quest developer manager. You need to access the Platform Services to make it work.

    • Shavier's avatar
      Shavier
      Protege

      Yep I've been trying that, setting the app as an alpha version and giving me test user access, and download the app from the applab instead of installing it through unity, but still getting the same message.
      For some reason the OculusID that the user gets is empty and the user ID is 0.
      (And yes, I set the AppID on the Oculus platform settings...) So I dont know what else can I do 😞

      • TriplePete's avatar
        TriplePete
        Member

        I think you also need to config the Data Use Checkup in the developer manager - and at least Request access for UserID.

  • I'm having difficulties too.  Does anyone know if two headsets that have the same userID can use the shared spatial anchors example?  Not sure if this is the problem but I have multiple headsets but only one Meta profile.

  • Muchuts's avatar
    Muchuts
    Honored Guest

    Awesome.  Thanks so much!  I'll give it a shot and see what happens.  Cheers!

  • I was able to get spatial anchor sharing to work for a single user. If I try to share from any other user that has been invited to the ALPHA release channel, it times out and never uploads. Occasionally other users can download the anchors that the one working user has uploaded, but none of the others can upload anchors.

    I can not for the life of me figure out what is different about this one user that is actually able to share consistently. Did you run across anything like this when fixing your issue?

     

    I have tried the "working user" on different headsets and it always works for only this user even though I have multiple other users in the organization with the same permissions as well as added to the release channel......

    • Shavier's avatar
      Shavier
      Protege

      Hmm no I didnt get this issue, have you try cheking the sharing anchors permissions in the oculus quest? Maybe it is turn off so the user cant share it. Also, are you using the same wifi network? (I assume you are, but just checking the posibilities). It could be a lot of things but the one problem I had one time is that 2 users had a "bug" and they couldn't get anchors shared or share it by them self (I dont know if it has to be with some troubles in the cloud anchor data or something) so I just delete those test users and create a new ones, and then it worked.
      Let me know if you can make it work or if you have some more issues.

  • Yeah, I made sure all users have the point cloud sharing permissions turned on. I have also tested on various wireless networks.

    It's interesting that you have had test users in a sort of corrupt state, ill have to see if that applies here. The strangest thing is that the organization owner account is one of the ones that can't upload. The only one that can is one of the dev accounts that I invited into my org to test the project.

    • swang81's avatar
      swang81
      Member

      I have the same strangest thing that orgnization owner acount who cannot upload anchor but owner can see other's anchor. Here I config the application id and token in dashboard, but i didnot release the applicaiton from app lab to them.  I install all application directly. I donnot know if it is right. 

  • Okay thank you that's helpful info.  Out of curiosity, what is the difference between what the SDK does in OnShareButtonPressed() and OnShareComplete() and what Mirror does in SendAnchorsToServer()?  I guess when you share an anchor it publishes the anchor and tells the cloud which users to authorize access for that session?  But then separately the server has to instruct all the clients via Mirror to actually pull down and Instantiate those anchors?  Is that right?

  • deimov's avatar
    deimov
    Honored Guest

    Hello Shavier... could you use the Spatial Anchors project? if you could..... could you put the anchors where you want? i mean, in my case, i open the project and i have the menu to chose Create Anchors, Select, Load .. etc...

    But when i click on Create Anchors, the anchors appears on the bottom floor (0,0,0) World Location.... Shouldn't they be where i want to put them? in case you or someone knon what is my problem... o how could i use Spatial Anchors i will appreciate it very much!!!!