I am making an example note taking application with Firebase where users can log in and create simple text notes. My Firebase data structure is as follows:
"Project-dir":{ "Notes":{ "UserID":{ "NoteKey":{ "title":"This is note title", "content":"This is the note content", "unixTime":123456789 }, "NoteKey":{ "title":"This is note title", "content":"This is the note content", "unixTime":123456789 }, } } }
It works great when a user logs in. However, I want to add the "Continue without logging in" functionality. I created a unique user ID using push () to use instead of the URI and storing it in sharedprefs. However, how can I transfer all of these notes to a user identifier (UID) when he decides to register later?
source share