Open Renkon117 opened 3 years ago
Hi, sorry about the long turn around on this one. If you're still having trouble with this, could you ensure that the service account that's generating the token has the Service Account Token Creator role in GCP?
If you send over one of your tokens I can inspect it and see if there is any obvious issue with it.
We have the same issue. The Anchor is hosted ttl=365 on Android and on iOS we get the not authorized error. Unity Version: 2020.3.1f1 ARCore Extensions: 1.26.0 ARFoundation: 4.1.7 ARCoreXR: 4.1.7 ARKit 4.1.7 @devbridie , please help
ttl = 365 strikes back!
ARCore Extensions Version 1.37.0 Unity 2021.3.16 ErrorNotAuthorized -- after updating to the new API.
Old API worked perfectly. Token is verified and valid,
API key -> works great
Nothing from above worked for us.
This is the 3rd time this project breaks due to ARCloudAnchor API update.
@devbridie Please help us! Again 😔
Any solution for this issue? Same here.
Looks like ttl is the issue here. If you try to host anchor with 365 days it doesn't work but if ttl is set to 1 then it is hosting /resolving successfully.
_ = try self.gSession?.hostCloudAnchor(arAnchor, ttlDays: 1,completionHandler: {(anchorId,state) in
completion(anchorId, state)
})
Please verify your authorization settings using our troubleshooting guide: https://developers.google.com/ar/develop/authorization/troubleshooting?platform=ios
Hello, I am using the persistent Anchors with keyless method. I successfully made persistent anchor on Android platform but not on iOS.
I used "SetAuthToken()" method each time AnchorManager uses Host or Resolve Anchor.
I followed these official articles but cannot Host or Resolve Anchor on iOS.
How to use cloud anchor api on Unity: https://developers.google.com/ar/develop/unity-arf/cloud-anchors/developer-guide-ios
How to make service account to use cloud anchor api with keyless method: https://developers.google.com/ar/develop/unity-arf/cloud-anchors/developer-guide-ios#create-service-account
The following issue did not mention iOS platform issue. https://github.com/google-ar/arcore-unity-extensions/issues/22
Unity Version: 2020.3.8f1 ARCore Foundation: 4.1.5 ARCore Extensions: 1.24.0
Any help will be appreciated.