locked
Windows Store Metro Apps: Is there a unique ID I can pull for a user?

    Question

  • I've built some Windows Phone apps and one thing I like is the ability to pull a hash of the users LiveID from the phone so that users can be uniquely identified across devices.

    Is there a good way to do this in metro apps. I'm sure I could use the device ID but then they're data wouldn't persist onto other devices they might own.

    Anyone else have a good solution to this. I'm trying to avoid user registration in my app.

    Thanks!

    /Eric


    Dev


    • Edited by EricLa Tuesday, October 16, 2012 5:21 PM
    Tuesday, October 16, 2012 5:21 PM

Answers

  • ApplicationData.Current.RoamingFolders or if just want to save a guid you can use roamingsettings

    ApplicationData.Currnet.RoamingSettings.Value["USERID"]= Guid.NexGuid()

    • Marked as answer by EricLa Tuesday, October 16, 2012 10:36 PM
    Tuesday, October 16, 2012 8:26 PM

All replies

  • no but you can generate a guid your self and save it in the roaming folders if it have to be acros device or in local if it have to be unique for the device
    Tuesday, October 16, 2012 6:12 PM
  • interesting. roaming folders? is this something built into the platform?

    Dev

    Tuesday, October 16, 2012 8:10 PM
  • ApplicationData.Current.RoamingFolders or if just want to save a guid you can use roamingsettings

    ApplicationData.Currnet.RoamingSettings.Value["USERID"]= Guid.NexGuid()

    • Marked as answer by EricLa Tuesday, October 16, 2012 10:36 PM
    Tuesday, October 16, 2012 8:26 PM