Trying to load previously saved Azure Spatial Anchors into an iOS app for use with indoor wayfinding. Have tried various approaches, including specifying the identifiers needed in the ASAAnchorLocateCriteria used to create the watcher. Anchors always come back with ASALocateAnchorStatusNotLocated.
This is in a simple iOS 12 app using ARKit with a SceneView. Upon display of the SceneView, we prompt the user to move the phone around until the ASACloudSpatialAnchorSession has enough info about the scene to determine the neighborhood ID.
In attempting to find anchors that have been previously saved in the same neighborhood ID using various approaches for criteria, nothing seems to make a difference. The anchors are not located.
let criteria = ASAAnchorLocateCriteria()!
criteria.identifiers = ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx"]
cloudSession!.createWatcher(criteria)
isLookingForNearbyAnchors = true
I'm looking to have the sessionUpdated event associated with our ASACloudSpatialAnchorSession fired with a status of ASALocateAnchorStatusLocated so we can then display the previously stored anchor in the scene.
Can anyone provide some insight into what I'm doing wrong here, or if this approach is possible with the current Azure Spatial Anchors SDK for iOS?