I have a database like this I want to save a unique key “-MCzU6r-JqvAkC9unjru” in my child, like this can I do that? if can how I can implement it in my code? here code for add data to firebase Answer You can do the following: Using getKey() you can retrieve the random id created using push() and then add