FireBase - Problems checking document existence.

Friends, I need your help. I’m trying to check the existence of a document in my Firebase collection and I can’t do it, the variables that I put to receive the results throw me 0 in the debug of the game, so I don’t know how to check the existence.

It’s not a permissions problem, because previously from Gdevelop I was able to insert the document into my collection.

Is it a problem with the variables? Does any variable expect boolean value?

I believe you have fixed this by using ToJson.
Feel free to share some details for future readers.

The problem is the delay at loading from the cloud. You display the result before it is loaded.
Use the callback variable. Add a second event for your debug actions with the condition callback variable = “ok”.

1 Like