You should have been through the setup of the Firebase Core before attempting to proceed with Cloud Firestore.
Make sure you have added all the extensions required for the Firebase Core extension as outlined here.
Usage of the Cloud Firestore requires adding the Firestore ANE along with the Database and Auth ANEs located in this repository:
These ANEs contain the required libraries for the Cloud Firestore functionality.
Due to several of our ANE's using the Square open source libraries the libraries have been separated into a separate ANEs allowing you to avoid conflicts and duplicate definitions. This means that you need to include the some of the square native extensions in your application along with this extension.
You will add these extensions as you do with any other ANE, and you need to ensure it is packaged with your application.
This ANE requires the following Square extensions:
You can access these extensions here: https://github.com/distriqt/ANE-SquareLibs.
com.google.code.gson extension which adds support for GSON in the application. This extension is available in the Android support repository:
com.google.guava extension which adds support for Google Guava libraries in the application. This extension is available in the Android support repository:
io.grpc extension which adds support for gRPC libraries in the application. This extension is available in the Android support repository:
The following should be added to your
extensions node in your application descriptor to identify all the required ANEs in your application:
ComponentDiscoveryService service you added as part of the core Firebase manfiest additions and add the following meta data tag:
It should now appear like:
Open the Firebase Console and create a new project.
In the Database section, click the Get Started button for Cloud Firestore.
Select a starting mode for your Cloud Firestore Security Rules:
- Test mode: Good for getting started with the mobile and web client libraries, but allows anyone to read and overwrite your data. After testing, make sure to see the Secure your data section.
- Locked mode: Denies all reads and writes from mobile and web clients. Your authenticated application servers (C#, Go, Java, Node.js, PHP, Python, or Ruby) can still access your database.
- Click Enable.