iOS Samples for Cloud Firestore

Friendly Eats

This sample app demonstrates building a simple restaurant recommendation service using Cloud Firestore. This demonstrates features such as compound queries, client-side transactions, subcollections, and offline persistence.

To browse the sample source, go to the sample page.

To clone the source:

git clone

To build and run the sample:

  1. In the quickstart-ios/firestore directory, install the required dependencies:

     pod install
  2. Set up your environment to work with Cloud Firestore.

  3. Add Firebase to your app.
  4. In the Authentication tab of the Firebase console, go to the Sign-in Method page and enable the Email/Password provider. This app uses FirebaseUI for authentication.
  5. Consult the sample's file for an example of security rules that are appropriate for this sample, then use the Firebase console to update the security rules for your project.
  6. Run the app on an iOS device or on the iOS Simulator.

After installing the app, tap Populate to add restaurants to the database. You should see a list of restaurants displayed in the app:

Send feedback about...

Need help? Visit our support page.