When using segment override for a store, is there any delay before the new store gets returned?
For example:
Statistic - UserLevel
SegmentBeginner = UserLevel == 0
SegmentPro = UserLevel == 1
Lets say a store "Coins" is configured to be overriden with store "CoinsPro" when a user is in segment SegmentPro.
Lets assume this cloud script method:
server.GetStoreItems("Coins") ---> store.StoreID = Coins
server.UpdatePlayerStatistics( UserLevel, 1);
server.GetStoreItems("Coins") ---> store.StoreID = Coins (still returns the old store)
only after a few seconds GetStoreItems returns the override store:
server.GetStoreItems("Coins") ---> store.StoreID = CoinsPro (only new returns the new store)
Is this by design? If so, is there any way to know when the store gets overriden internally so we can display/show the new store correctly? (in our case this is especially required then switching from the First User Time Experience store to the normal store, and switching stores after ranking up, etc..).
Without being able to use a pattern like:
Player completed game
Game calls cloud script to handle game result
Rank statistic is increased
Store configuration is returned (this is more or less random, sometimes the new, sometimes the old is returned)
Game shows new store
It is very complicated to make sure the store displayed is the actual one in use (without periodically triggering an action/server call to check for an updated store)