I\'m having trouble writing to my Firebase database in my simple Android app. I\'ve set my database rules to be public:
{
\"rules\": {
\".read\": true,
I'm not entirely sure what the problem was, but I just deleted my project from Firebase and recreated it, deleting and installing the new google-services.json and it worked perfectly the second time.
Luckily this is a test app and my database was empty, but if you're in this situation and have valuable information stored in your account, I would recommend exporting it before trying this solution.