My goal is to automatically navigate to a specific ID after adding an item to my realtime database.
Despite following the documentation's proposed solution, I am encountering issues with its implementation.
Following the use of the push().set() method on my database reference, I attempted to create a callback function that retrieves the unique ID generated by this method and uses it for navigation.
db.ref.push().set({
...
}).then(function(){
router.navigate('ref/' + db.ref.key)
})
Once a new object has been created at that reference point, I aim to utilize the firebase-generated ID to navigate to a specific route associated with that ID.