CloudDB: wait until data is received?

Hello. I'm trying to build a little game which uses a ranking system. The problem is: I want to wait to receive data from CloudDB before updating the ranking and send to CloudDB again, but it seems that I cannot do this. My approach is to use a "while loop". If I received data or 10 seconds is elapsed then I could do something else. But the loop freezes the app.


Anyone knows a way to wait the received data before proceeding? Thanks!

Once you have done your CloudDB.GetValue there is nothing more for you to do in that Button.Click event. The data won't arrive there, but in the CloudDb.GotData event, like you coded.

There is no need for a clock, and a loop will send your phone into a coma.

Just process the CloudDB data in the .GotData event.



1 Like