Help with new mobile game

So I am making a new mobile game and I whant the game to save to the account that is playing it like all mobile games with an account system
Because you should know what happens with phones you get one you get games on it you login into the games your phone breaks and you log back in the game and your progress is saved