Problem receiving values from firebase

I’m trying to save the player’s position in firestore in firebase so that when I close the game the position is saved, so that when I enter the game I’ll be in the same position I was in when I left. I already have code done but it doesn’t work.