Jérôme S.
Jérôme S.

Reputation: 551

How to get the UWP user identity across devices

I have been using and hating the Roaming feature for a while now. For my use case, it's just not reliable enough and the storage is somewhat limited too.

I'm going to implement my own custom syncing storage and system, but i would like to avoid users creating an account specifically for my app.

Is there some way of retrieving a user unique identifier, related to the MS account, that will be the same across all the user devices ? For instance, if the user has a Laptop and a Surface using the same MS account, the ID returned should be the same.

Upvotes: 1

Views: 237

Answers (1)

Peter Torr
Peter Torr

Reputation: 12019

One option is to use the WebAccountManager; you could ask for a Microsoft Account or Facebook etc.

You should allocate your own unique ID (eg, a GUID) and then associate it with the user ID you get from the broker so you can do things like migrate accounts to different providers over time.

Upvotes: 1

Related Questions