If you want to save and load your app or game for free no plugins , in Firebase just do it : All My tutorials here. 1): Create an account in Firebase 2): Add a...
Where is the username getting created? Is that from firebase?
on Start of Layout on missing the id on Localstorage , the Idtoogle is set to 0 , and the first time you save the game , Firebase creates a unique id on first data entry , and the ajax make a request to get the id and save on localstorage , it creates only once , and construct set toogle id to 1 , and next time when save or load , the ajax will send data with ID included , check on line 5,6,7,8
justifun