access user's microsoft account email id from my app in windows phone 8

后端 未结 2 535
失恋的感觉
失恋的感觉 2021-01-24 06:32

I\'m looking to access an email id of user that is used for marketplace in wp8. Email address chooser task is only to obtain the email address of a contact, not from user\'s ma

相关标签:
2条回答
  • 2021-01-24 07:07

    Due to privacy concerns it is not possible to retrieve the account ID. If you just want to identify the user you can use UserExtendedProperties.GetValue("ANID2") (more information on the WP8 version here)

    0 讨论(0)
  • 2021-01-24 07:15

    Also ANID2 is bounded to the the Windows Live Account Id, and the Publisher GUID. So, applications from different publisher will get different values of ANID2.

    This link dives into a bit more details- ANID2

    extract :

    The following holds true for Windows Phone 8 too.

    The format in WP7 was like (I x-ed out a few chars): A=E32ACBXXXXXXXXX3B337B68CFFFFFFFF&E=d59&W=1

    In WP7 it was necessary to parse the value after A= up to &E= as the other values could change over time.

    0 讨论(0)
提交回复
热议问题