I am trying to learn how to use the AzureSpatialAnchor properly with unity using Hololens 2 and an android cellphone.
I downloaded the Unity GitHub example, and I modified the Start() of the AzureSpatialAnchorBasicDemoScript.cs as follow in order to skip all the previous steps for creating an anchor and to directly search for an anchor I previously created (The anchor creation is also shown in the Azure Portal, and it was created with a similar script with an expiration date set to 7 days)
public override void Start()
{
Debug.Log(">>Azure Spatial Anchors Demo Script Start");
base.Start();
if (!SanityCheckAccessConfiguration())
{
return;
}
feedbackBox.text = stateParams[currentAppState].StepMessage;
Debug.Log("Azure Spatial Anchors Demo script started");
\\PART ADDED
#if UNITY_DEBUG
currentAppState = AppState.DemoStepCreateSessionForQuery;
currentAnchorId = "1460f7f6-b3ef-4afc-b425-4ec94cd953f7";
#endif
}
When I build the app with the "AzureSpatialAnchorsBasicDemo" and "AzureSpatialAnchorsDemoLauncher", it never stops looking for the anchor or it shows me a message telling "Possible anchor locate {anchorId} status: NotLocatedAnchorDoesNotExist".
Azure Spatial Anchor documentation tells for this problem "The anchor was deleted or never existed in the first place" but no delete operation is present in the Azure Portal after the creation of the anchor.
How can I debug this problem? What could be the possible issues?