Please I have a major issue, I am working on app and I set up the sign up using firebase because. I also used firebase to set up the user details, i.e to save their username and image. However, after logging in for a while, the app variable user ID becomes empty. I confirmed this by setting a label to show the user ID and nothing displays. This really affects the app, because when I try to update a profile details in firebase, all the previous data by other users clear, and instead of showing Users/app variable UserID/ Image or username structure, it clears everything and just shows User/ Image and username.
I have attached some screenshots below, your help will be highly appreciated, thank you.