Realtime Database stops sending new data after some time. #368
Unanswered
dgsdestinygamestudios
asked this question in
Q&A
Replies: 1 comment 5 replies
-
You're using the database all wrong. It's not intended to be pinged like that. Generally, for turn-based games in the realtime database, you want to structure them like this:
You can use update as well, but you should not make new references like that. Store one reference and you should be fine. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The number that calculator shows, is how many seconds passed since game started. They go the same (sometimes 1 second off) for some time. Then the player who is waiting for his turn, stops receiving data from Realtime Database.
It happens on seemingly random times. I saw 8 seconds, I saw 113 seconds.
This is the code behind:
I would appreciate any help.
Beta Was this translation helpful? Give feedback.
All reactions