I want to get the catalog item custom data when the player logs in. What parameters can I pass to InfoRequestParameters to do this, and will this data be cached on the client or refreshed each time the player logs in?
I want to get the catalog item custom data when the player logs in. What parameters can I pass to InfoRequestParameters to do this, and will this data be cached on the client or refreshed each time the player logs in?
You want to get the custom data for a specific item in the catalog upon login, is that right? In that case, you’d need an additional call to do this, which is the GetCatalogItems API call, it’ll return all the items in the specified catalog version with all defined properties (custom data included). And, the PlayFab SDK doesn’t automatically cache this data for, you’d need to cache it manually.
Thank you, Is there any way to know what version of the current primary catalog ? or the catalog hashcode so I can detect changes and drop outdated versions of the cache.
One way to do this is by storing the version string in Title data every time the primary catalog changes, and set InfoRequestParameters - GetTitleData as true so that every time a player logs in, it can get the current catalog version.
2 People are following this question.