I’m creating an AR app using cloud anchors. Everything works perfect, the anchors are hosted and resolved well. But they only remain alive 24h.
Reading documentation and searching in the code i have find this: “This is configurable up to 365 days when keyless authentication is used.” and “The lifetime of the anchor in days. Must be positive. The maximum allowed value is 1 if using an API Key to authenticate with the ARCore”. which is certainly confusing for me as the app need the key to host the anchors in the cloud.
At this point i have many questions:
How it can be possible to host an anchor without key? I get an “unauthorized error” trying this.
How it is possible to increase the lifetime for the anchors? By code I get an error and “Google Cloud Platform” website is very very confusing and I can’t find anything but metrics.
“maximum allowed value is 1 if using an API Key to authenticate with the
// ARCore Cloud Anchor Service, otherwise the maximum allowed value is 365.”
So you can host an anchor for up to 365 days, but you must authenticate with the API to host a cloud anchor, and also if you authenticate you can only host for 1 day.
Makes no sense. The app won’t even build with any setting other than API key authentication in ARCore config.
I did try to host 1 anchor with multiple objects at the same time. But it was not precise as I expected, so I decided to host multiple anchors. That works fine.