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

不问归期 提交于 2019-12-31 04:15:21

问题


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 mail id set in mail account of phone


回答1:


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)




回答2:


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.



来源:https://stackoverflow.com/questions/17387521/access-users-microsoft-account-email-id-from-my-app-in-windows-phone-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!