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 /
  • API and SDK Questions /
avatar image
Question by Dale Strickler · Jul 10, 2020 at 05:01 PM · Player Datadata

Inconsistency in data returned from login

I am using Unity SDK 2.89.2000629. I am calling:

PlayFabClientAPI.LoginWithIOSDeviceID
   (PfRequests.LoginIosRequest, OnLoginSuccess, ErrorOccured);

With the PfRequests.LoginIooRequest set to:

LoginIosRequest = new LoginWithIOSDeviceIDRequest
 {
  CreateAccount = true,
  DeviceId = SystemInfo.deviceUniqueIdentifier,
  DeviceModel = SystemInfo.deviceModel, 
  InfoRequestParameters = CombineInfoParams,
  OS = SystemInfo.operatingSystem,
  TitleId = PlayFabSettings.TitleId
 };

And with CombineInfoParms:

 CombineInfoParams = new GetPlayerCombinedInfoRequestParams
  {
   GetCharacterInventories = false,
   GetCharacterList = false,
   GetPlayerProfile = true,
   GetPlayerStatistics = true,
   GetTitleData = true,
   GetUserAccountInfo = true,
   GetUserData = true,
   GetUserInventory = true,
   GetUserReadOnlyData = true,
   GetUserVirtualCurrency = true,
   PlayerStatisticNames = null,
   ProfileConstraints = null,
   TitleDataKeys = new List<string>{/*list removed for brevity*/}, 
   UserDataKeys = new List<string>{/*list removed for brevity*/},
   UserReadOnlyDataKeys = new List<string>{/*list removed for brevity*/},
 };

I am noticing a couple of things:

1. The returned GetPlayerCombinedInfoResultPayload does not contain UserVirtualCurrency

2. Of the 7 items, my test player purchased 3 correctly show the UnitCurrency and UnitPrice. The other four UnitCurrency is blank and UnitPrice is 0. Checking the catalog all the items are defined with UnitPirce and UnitCurrency set the same.


My questions:

1. What do I need to do to get the UserVirtualCurrency from the login call?

2. Should I be concerned that the unit price and unit currency are not always being reported correctly? When I purchased the items the purchase seemed to work normally and the payer virtual currency was reduced correctly for all the items purchased.

Comment

People who like this

0 Show 1
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 Dale Strickler · Jul 10, 2020 at 06:32 PM 0
Share

Found the issues with the UserVirtualCurrency, my bad. I forgot dictionaries do not show in serialized objects and I serialized the value before I looked at it. I will need to fix that. As for some of the items having unit currency/price and others not, I still don't understand it and I am worried that it is showing off a problem.

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Sarah Zhang · Jul 13, 2020 at 02:24 PM

Did you grant the items via Game Manager? In the testing, the items granted via Game Manager won't show the UnitCurrency and UnitPrice.

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

    Related Questions

    Securing player data updates 1 Answer

    Items can be consumed by count and/or time. Usage period must be more than 2 seconds. What does this mean? 2 Answers

    Read and write frequently updated data 1 Answer

    Trouble uploading a text file as an entity file onto playfab. 1 Answer

    Upload JSON file Unity (entity) 2 Answers

    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