HI, I just got a news updates saying that "all item consumable times must be greater than 2 sec".
Currently, all my consumable items with time are with a time of 1sec. The purpose of this is to make sure the totals are added or removed to players currency and inventory, as soon as a ClientAPI calls PurchaseItem (WithItemID, CatalogID, StoreID, Price etc..)
I am uses this as a way to update the totals on the server, and call the pull the player's inventory as soon as I get the response for the PurchaseItem successful.
The assumption is that the server updates the totals in 1 sec, and when the next call is sent for an update inventory and virtual currency, all values reflect the purchase transaction.
Now with the new condition of "Item consumable times must be greater than 2 sec", I am not be able to use the second call right away, and have to block the client for 3 seconds, before I make the get updated inventory call.
This would be a bad user experience, and how do I guarantee if the inventory is up-to date, if I change my time to 2 or 3 sec on the server?
Q: I am I using the combination of PurchaseItem for a consumable, followed by GetCombinedData(Inventory) on Success correctly?
Q: How do I ensure that the PurchaseItem transaction on the server has update the inventory items and VC, before I pull the invenotry again?