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,
Complete Solution:
1). Firstly go to Authentication Tab and select SIGN-IN-METHOD turn Anonymous On
2). Secondly go to Database Tab and write Rule
{
"rules": {
".read": true,
".write": true
}}
3). Thirdly go to Storage Tab and write following rule
service firebase.storage {
match /b/myapplicationname-f2266.appspot.com/o {
match /{allPaths=**} {
allow read, write;
}}}
Note This solution is only for testing purpose with following steps you are giving public permission for Read and Write your database.