In SQL Server, we have the NEW_ID() function whenever we want to generate a unique ID. Sometimes, when it's difficult to assign a primary key(s), I use this to uniquely identify a row.
I'm now writing a kotlin android app where I need to store user info in a collection -> document. What is the recommended practice for generating unique IDs for each user? Should I use a simple incrementing value starting with 1?