Hello , i am making app android app for book discovery platform where users are able to see listed books on app even without login but if somebody wants to add books then they need to login first and then it will be added and shown to all.
Node where i am storing books are:
and my security rules are as follows:
{
"rules": {
".read":true,
"books":{
".write":"auth != null"
}
}
}
Problem is when i am fetching data then my whole listview gets populated with the new data added by the logged in user everytime.It is unable to fetch all the data available in my database .
what wrong i am doing here.