This document describes the configuration required for a Firestore Database project to be used with cloud_provider_firestore.
In the Firebase Console, under Database > Cloud Firestore > Rules, set the rules to:
service cloud.firestore {
match /databases/{database}/documents {
match /users/{uid}/{everything=**} {
allow read, write: if request.auth.uid == uid;
}
}
}
In order to run tests (end-to-end sync tests, sync benchmarks, validation tests) against a Firestore instance, you need the following:
Project Settings / GeneralProject Settings / Service accounts. Click on “Generate new private key”.See cloud sync set-up instructions for instructions on how to use this information to run these tests.