Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • Bugs /
avatar image
Question by JasonBluebox · Mar 16, 2019 at 02:14 AM ·

PlayerProfile is null in InfoResultPayload if CreateAccount is true and user is new

When calling any of the Login methods (ie. LoginWithCustomID) with CreateAccount set to true and InfoRequestParameters.GetPlayerProfile set to true and this is the first login for the device the call is successful and returns a valid PlayFabId, SessionTicket, but the result.InfoResultPayload.PlayerProfile is NULL.

If this same code is called but the CustomId is already registered, the PlayerProfile is returned.

I would expect the newly created player profile to be returned when the Login call is used to create the account.

2019-03-15-19-29-45.png (57.3 kB)
2019-03-15-19-30-34.png (41.3 kB)
Comment
sowee
vietdungdev

People who like this

2 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Andy · Mar 17, 2019 at 02:52 AM

I'm not sure whether this is by design or a bug. I could see an argument for both. I do agree that it would be more convenient if it did return the just-created profile. I'll raise it with the appropriate team and see what they say.

Comment

People who like this

0 Show 3 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image JasonBluebox · Mar 19, 2019 at 12:50 PM 0
Share

Thanks Andy. I looked through the documentation and wasn't able to find anything that would imply the profile shouldn't be returned.

avatar image sowee · Apr 01, 2019 at 02:31 PM 0
Share

Any follow up on this issue?

avatar image Andy ♦♦ sowee · Apr 02, 2019 at 03:47 AM 1
Share

Actually yes. The team decided this is too risky to change (there's an order of operations problem with regard to when the profile actually exists, empty or not). Instead, they're updating the documentation to reflect the current behavior.

avatar image

Answer by vietdungdev · Apr 04 at 11:34 AM

//temp fix

 private void OnPlayfabAuthComplete(LoginResult result)
    {
        if (result.InfoResultPayload.PlayerProfile == null)
        {
            //create new account need once more login
            AutoLogin();
            return;
	}

	//abcxyz
    }
Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    3 People are following this question.

    avatar image avatar image avatar image

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges