How can I share Azure Spatial Anchors between devices?

António Sérgio Azevedo 7,671 Reputation points Microsoft Employee Moderator
2020-05-16T00:01:55.623+00:00

I would like to be able to locate Azure Spatial Anchors that I’ve created, on multiple devices. How can I do that?

[Note: As we migrate from MSDN, this question has been posted by an Azure Cloud Engineer as a frequently asked question] source: Azure Docs

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,940 questions
Community Center | Not monitored
0 comments No comments
{count} votes

Accepted answer
  1. Mike Ubezzi 2,776 Reputation points
    2020-05-16T00:06:01.807+00:00

    To share Azure Spatial Anchors across sessions and devices, you will want to store your shared cloud anchor identifiers in your back-end service. Those identifiers can then be used to locate shared anchors from any device that can successfully authenticate to your service.

    For shorter-term storage, cloud spatial anchor identifiers can be stored in-memory of your back-end service. The duration of time for which anchors will be stored in memory will depend on how your back-end service is set up.

    For longer-term storage, you can improve your back-end service so that it uses Azure Cosmos DB (or a back-end storage solution of your choice) to persist the storage of your shared cloud anchor identifiers. Adding Azure Cosmos DB support will allow you to create an anchor today, and come back days later to be able to locate it again, by using the cloud anchor identifier stored in your service. 

    Source: Azure Docs

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.