Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AREarthManager.EarthState is NotAuthorized even though AREarthManager.CheckVPSAvailability returns Available #212

Open
yvz-dmr opened this issue Aug 21, 2024 · 1 comment

Comments

@yvz-dmr
Copy link

yvz-dmr commented Aug 21, 2024

I am using ar core unity extensions v1.45 and using ios authentication strategy as Authentication token. I am generating jwt token and setting it through ARAnchorManager.SetAuthToken. Everything works perfect i can host and resolve google cloud anchor and i can check VPSAvailability but when i check EarthState it returns ErrorNotAuthorized and AREarthManager.EarthTrackingState is always TrackingState.None.

I checked google cloud console ar core api traffic by response code and all request responded with status code 200
image

Here is the jwt payload of my authentication token
{
"sub": "[email protected]",
"nbf": 1724234866,
"exp": 1724238466,
"iat": 1724234866,
"iss": "[email protected]",
"aud": "https://arcore.googleapis.com/"
}

I am using unity version 6000.0.15f1

@15kingben
Copy link

Be sure to check https://developers.google.com/ar/develop/authorization/troubleshooting?platform=unity-arf#jwt-not-authorized if you have not already, and verify that the tokens are expected for both APIs. Are you using the sample app?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants