I have a post table, and a user table. Summary is that a post is made by a user, I save the key in the user and create the post in the post table.
I am testing and playing with it at the moment, and when I have deleted posts, including the key in the user, they come back to haunt me as ghosts. This is happing ~50% of the time. The ghost data is pulled rather than the actual data in the database.
I am using unity for this.
I have cleared playerprefs(Apparently that could have helped) and have deleted the “Library” folder in my project to try clearing any cached data it might be held in.
The funny thing is, different ghost data is showing depending on the client device.
Like I said, this is my first time using firebase so I am not fully sure if there is some sort of fix or missing code which could cause this.
My code base at this point is quite big, so any code which is needed I can give on request, as I am not sure even where this issue roots from.
I also have an issue which isnt letting me build to android, so I am currently unable to test on there to see if it is just a unity editor problem
Thanks for the help:)
Loading data from database resulted in ghost data overwriting the real data, after data was cleared via the web viewer.
Josh Markey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.