question

holy-way avatar image
holy-way asked

playerProfile.ContactEmailAddresses is null

When I want to get the contactemail,it says its null,how can i get the contactemaill in title player account?

Player Data
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

Do you use the API GetPlayerProfile and set the ProfileConstraints.ShowContactEmailAddresses as true to retrieve the player’s contact email? If so, did you navigate to your title’s [Game Manager]->[Title Settings]->[Client Profile Options] to check the [Contact email address] to allow clients access it? As this documentation -- Tutorial: Get a player profile, especially this section said, to get more data besides PublisherId, TitleId and PlayId when you call the GetPlayerProfile API, you need to configure the constraints on the data to be available.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.