Firebase Storage
In-app chat system supports image sharing, the images are shared and uploaded through firebase storage. By default the Firebase storage is not enabled on your firebase, you need to create the firebase storage on your firebase.
To create a Firebase Storage in your Firebase project, follow these steps:
Create a Firebase Project:
Go to the Firebase console at https://console.firebase.google.com/.
Click on "Add project" or select an existing project where you want to add Firebase Storage.
Follow the instructions to set up your project.
Enable Firebase Storage:
Once your project is created or selected, click on "Build" from the left menu.
Select "Storage" from the options.
Set Up Firebase Storage:
Click on the "Get Started" button.
Review the storage rules and modify them to use the rule stated at the bottom section of this page. These rules determine who can access your storage and what operations they can perform.
Click on "Next" to proceed.
Choose a Storage Location:
Select the geographic location where you want your storage to be stored.
Firebase provides multiple options for storage locations.
Click on "Done" to complete the setup.
Firebase Storage Security
Same has setting security for the firebase firestore to protect your data, you also need to set security rules to protect images upload via chat to the firebase storage.
Below is the security rule that should be set for the firebase storage:
Last updated