Index Generator for user in firebase

Correction, there is an increment server value you can use in realtime database
(using the REST api)

{"increment":{".sv": {"increment": 1 }}}

You would set the value of tag increment when adding a new user, then get this value to use as the userID.

You could also use the timestamp server value

{"timestamp":{".sv":"timestamp"}}
1 Like