Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Unity3D ArCore Persistent Cloud Anchors sample app - ErrorNotAuthorizedror ErrorNo

Discussion in 'AR' started by zimmer550king101, May 26, 2021.

  1. zimmer550king101

    zimmer550king101

    Joined:
    May 26, 2021
    Posts:
    9
    The persistent cloud anchor app does not work. I already tried the two apps I made using Sceneform and ARCore+OpenGL in Android Studio and I was able to host keyless anchors for 365 days without running into any error.

    My Unity version is 2020.3.8f1 and I am using the recommended Gradle version. I even used the Gradle version recommended here but I get the same error. I followed the tutorial steps here but instead of using a key, I set it to keyless (because I want to host anchors for 365 days).

    Has anyone been able to successfully host cloud anchors in ArFoundation for more than a day using the keyless approach?
     
  2. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,070
    In my experience, you should register your app in the Google Play Dev Console and upload at least one build to a Beta track. When the build is processed, the ARCore Cloud Anchors with TTL should work. Could please confirm it?

    Also, you should register your app in the Google Cloud Platform console.
     
  3. Saicopate

    Saicopate

    Joined:
    Sep 25, 2017
    Posts:
    76
    Do you happen to know if keyless authentication is needed only for hosting anchors with TTL > 1 or is it also needed for resolving such anchors? In other words is API key enough to resolve cloud anchors with TTL >1 ?
     
  4. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,070
    I haven't tried it myself, but I believe that you only need keyless auth if you're want to host a Cloud Anchor. The API for resolving Cloud Anchors doesn't mention a specific auth method in its source code.
     
    Saicopate likes this.
  5. zimmer550king101

    zimmer550king101

    Joined:
    May 26, 2021
    Posts:
    9
    I have already created an OAuth 2.0 client with the same package name that I am using for the app. I am using the debug.keystore for my app. It is still not working.
     
  6. zimmer550king101

    zimmer550king101

    Joined:
    May 26, 2021
    Posts:
    9
    "register your app in the Google Play Dev Console and upload at least one build to a Beta track" how do I do this?