After doing some searching, it seems the docs are a bit out of date with firebase's realtime database rules. As default for me they are set as:
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if false;
}
}
}
And when I do a simple write:
var databaseRef = firebase.database().ref();
databaseRef.child("Comments").set("Test")
It tells me: PERMISSION_DENIED. I'm assuming this is because of my rules. I tried changing it to:
allow read, write: if true;
But that changed nothing. Any help would be greatly appreciated