This article will walk you through troubleshooting steps if you are unable to deploy your Firebase Rules.
1. Validate that you have created your Firestore Database
Without a database created in the Firebase project, there is no way for FlutterFlow to deploy your rules.
β
Open the Firebase Console for your project and select Create database.
Video:
2. Validate that the three necessary permissions are granted
In order to deploy Firebase Rules, you will need to add the following cloud permissions for firebase@flutterflow.io: Editor, Cloud Functions Admin, and Service Account.
Head to the Firebase Console and open the project dashboard for your project (click the project tile). Select Project Settings > Users & Permissions.
If you don't have Cloud Functions Admin, Editor, and Service Account listed next to fireabse@flutterflow.io, you have not completed this step.
β3. Validate that you have selected the GCP location for your Firebase project
Head to the Firebase Console and open the project dashboard for your project (click the project tile). Select Project Settings > General.
If you see Not yet selected, you have not completed this step.
Select the pencil and complete setup.
Tip: Once created, this can not be changed. You can learn more about selecting locations here.
β
βAfter checking these 3 steps, you should be able to successfully deploy your database rules.