Title ID: 44B1
Dear PlayFab community,
I am trying to figure out what the recommended "best practice" is to grant some initial inventory to a new player for a title.
Based on this link, it seems like I could potentially leverage the player_added_title event. In theory, this would work well for me.
However, my current application flow is to request both the player inventory and the title data on login. I presume that if a player is NewlyCreated on login, and that event is fired and I trigger an inventory grant, that inventory likely will *not* be returned with the login GetPlayerCombinedInfoResultPayload. (That is, I'm guessing there is some latency in which the player is created and the event is fired -- they're not synchronous and "on the same thread", so to speak.)
In an ideal world, that player_added_title event *would* get fired as soon as it happens, the inventory granted, and the default items would be sent down with the login results for the NewlyCreated=true player. ;-)
But, if my assumption is correct and it doesn't work like I hope, what is the recommended approach with which to grant a new player their default inventory? Perhaps in the delegate from the login, check the NewlyCreated flag, and issue another call to grant the default inventory? Or...?
Any advice would be greatly appreciated. Thanks in advance!