Skip to content Skip to sidebar Skip to footer

Can't Save Data To Firebase Database

I have tried everything, but it just can't seem to save data to the database. Here is my sample code html:

Solution 1:

Remove key = ... line and use myRef.push(newData).then(function (snapshot) {}).

The push method returns a promise.

Also ensure that your database rules allows you to read from that path.

Post a Comment for "Can't Save Data To Firebase Database"