First of all, we have to install two new libraries, which are responsible for two Firebase services. Update the Podfile by adding these modules:
pod 'Firebase/Database'pod 'Firebase/Storage'
Then, install the new libraries. Before developing the code, we should enable the database and storage in our Firebase application. To do that, you have to open the Firebase console and activate the Database tab:
You have to use the real-time database, not the Firestore, which is a new service. Let's update the rules applied to database access. Open the RULES tab and replace the old rules with the following:
{ "rules": { ".read": "false", ".write": ...