In Firebase, you can manage database access for your users, which were logged in through Firebase authentication. This can be read more in depth inside the Firebase security quickstart found at https://firebase.google.com/docs/database/security/quickstart.
However, let's take a look at how it looks in a nutshell. Under the Realtime Database title there is a navigation bar with DATA, RULES, BACKUPS, and USAGE tabs. Let's select the RULES tab. We will see the following:
This screen is used to set permissions for our application. Since we haven't dealt yet with authentication, let's make our rules public. This means that any user will be able to retrieve the data from the Firebase endpoint, without any authentication. For our whatsappClone app, let's keep it that way.
Let's change the rules to the following ones:
{
"rules...