Skip to main content

Set Up Cloud Firestore

Last Updated: 27 May 2024
  1. Go to Cloud Firestore
  2. Go to the "Rules" Tab, and replace everything with this text:
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
}
}
caution

This will make your database public (insecure), so anyone can get or modify any data. These rules are preferred when you are still developing your app.

If you are going to publish your app, you will need proper Security Rules to protect your database. To do so, check out this Doc:📄Secure Your Firebase Project.