arcore-unity-extensions icon indicating copy to clipboard operation
arcore-unity-extensions copied to clipboard

Persistent Cloud Anchors - ErrorNotAuthorized

Open ghost opened this issue 4 years ago • 6 comments

When I run the persistent cloud anchor app with keyless hosting, I get this error when I try to host an anchor. Screenshot_20210615-203108

This is an ongoing issue that hasn't been solved. I have also contacted Google support but they don't have an answer to this as well. Does keyless hosting no longer work?

ghost avatar Jun 16 '21 11:06 ghost

Screenshot_20210625-201805_CloudAnchor202032

I think it is working...

https://koolwin1.tistory.com/314

Here is my work process

VontineDev avatar Jun 25 '21 12:06 VontineDev

@VontineDev how did you create your keystore? Can you show the steps you followed to do that because I think that is where my problem might be.

ghost avatar Jun 25 '21 14:06 ghost

@iAmJuan550

https://user-images.githubusercontent.com/57723128/123494866-549f6680-d65c-11eb-934e-9a96536ffc60.mp4

That's how I created keystore. Did you made OAuth 2.0 Client ID?

VontineDev avatar Jun 25 '21 23:06 VontineDev

@VontineDev how did you get the SHA key for this? I think I am not doing that part right?

ghost avatar Jun 28 '21 06:06 ghost

@iAmJuan550

Did you make Project on Console cloud platform?

After that 94603CED-25A5-49B6-99FD-D350DA5849BD

Create Credential---> OAuth Client ID

When you see here you can find keytool -keystore path-to-debug-or-production-keystore -list -v

C970D31B-3A3E-42EF-95D1-088E7B287338

Go to cmd. Go to directory where your keystore file is. cd (your root) keytool -keystore (your keystore filename).keystore -list -v Then you can see cmd will ask you to insert password.

VontineDev avatar Jul 01 '21 09:07 VontineDev

Here's some more troubleshooting steps from a different thread:

  1. Check for the existence of ProjectSettings/AndroidResolverDependencies.xml. If this does not exist, then probably this is the source of problems;
  2. Check Temp/gradleOut/unityLibrary/build.gradle; this should contain some lines with 'com.google.android.gms.

If this is the case, then GMS authentication libraries are missing at runtime, and this causes authentication to fail.

This may be caused by incorrect permissions in our provided tgz. If you're encountering this, a possible workaround is to remove ARCore Extensions from the Package Manager, then extracting the tgz first, then use Import from Disk to import the resulting package.json. Trigger a new build, and (1) and (2) should appear from above.

devbridie avatar Jul 07 '21 14:07 devbridie