Using Firestore as a backend to your Flutter app

Using Firestore as a backend to your Flutter app


100 thoughts to “Using Firestore as a backend to your Flutter app”

  1. Could we start getting more advanced articles/videos about performance, scaling or about some unknown/unused features ?

  2. It's very interesting, but iOS Swift with Cloud Firestore don't work. I checked it several times. And not only me. iOS with Objective-C and Android (Java and Kotlin) work correctly.

  3. This is brilliant… But it breaks my iOS side.

    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target.
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===
    diff: /Podfile.lock: No such file or directory
    diff: /Manifest.lock: No such file or directory
    error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

    I believe this is a framework bug, but any clues as to a work around?

  4. Hey Andrew i was searching how to make a custom listview layout widget can you suggest where to search for that??

  5. Ive started to use firestore but lets say for some reason i have to switch to somethinf different in the future. Will this process be easy?

  6. Hi,
    I am using Firestore plugin to communicate with my data. My question is how to get data with a condition with Firestore? Or how to Find a user by email address?
    I think this question will be asked from many programmers.
    Thank you,

  7. Are there any tutorials that show how to use cloud_firestore with firestore rules? As best as I can determine in flutter example code, request.auth.uid is not sent to the server.

  8. runTransaction() produces error when you hit the list item many times on the same device. There is still a bug in this method and hopefully you guys fix it asap. https://github.com/flutter/flutter/issues/18870

  9. How does StreamBuilder of Flutter affect the Firebase pricing in general? It's cool to have dynamic data, at the same time I have to worry about the cost.

  10. Hi, in your code at the time of configure firestore you didn't use any kind of "firestore.settings()" the way it has been mentioned it here – https://pub.dartlang.org/packages/cloud_firestore#-example-tab- . Is it really require to mention this setting thing or not? I'm bit confused about this.

  11. I've start using flutter, though it's very hard to find a good example of how to,
    There're lot of videos I'd like to have just a doc that explains every widget.
    Thanks for the video tutorial and great job

  12. Note that you should use the console to edit the Database.Rules to avoid a PERMISSION error on the android app; change "allow read, write: if false;" to "allow read, write: if true;"

  13. At 2:07 in the video, to register the flutter app in Firebase where Do I go to my Flutter solution to get that Android App name?
    The instructions I get from that help, I can't find the name.
    Where di you get "com.flutter.firebase.example.flutterfirebase" ?

  14. #askflutter
    Hi Andrew, a noob question –
    With respect to Firebase client SDKs, we have android and iOS but not specifically for Flutter and I assume we need to download both for working with Flutter? In terms of the whole array of features that Firebase and suite of integration it offers, is it safe to assume that all firebase features available if we were to write only android/iOS using their respective client SDKs be available in Flutter as well (or) are there any constraints that we need to be aware of?
    Thank you 😊

  15. hey i am facing this issue
    Launching libmain.dart on J7 Pro in debug mode…

    Initializing gradle…

    Resolving dependencies…

    Running 'gradlew null'…

    The Gradle project does not define a task suitable for the requested build.

    Review the android/app/build.gradle file and ensure it defines a debug build type.

    registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

    registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

    registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

    registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

    registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

    FAILURE: Build failed with an exception.

    * What went wrong:

    Task 'null' not found in root project 'android'.

    * Try:

    Run gradlew tasks to get a list of available tasks. Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output. Run with –scan to get full insights.

    * Get more help at https://help.gradle.org

    BUILD FAILED in 2s

    *****************************************************

    WARNING: This version of cloud_firestore will break your Android build if it or its dependencies aren't compatible with AndroidX.

    See https://goo.gl/CP92wY for more information on the problem and how to fix it.

    This warning prints for all Android build failures. The real root cause of the error may be unrelated.

    *****************************************************

    Finished with error: Gradle build failed: 1

  16. Good tutorial. I would have mentioned, however, that the iOS step for adding the Pod dependency SHOULD be skipped, instead of not mentioning it at all. But still good, I got started pretty quickly.

  17. There really is a ton of work being done for you here. I normally would have to setup a socket server and a way to sync things together upon fresh load etc etc. I wonder about buffering when say there are 10000 things going on at once meaning say you were showing popular posts in a feed that were showing meta items like votes and chat counts etc.

  18. how can i use firestore in custom package ? if i want to create a flutter package that uses firebase.. where to put json file, package android directory, or user app android directory ???

  19. PLZ PLZ PLZ, I want to Learn hot configuration firebase Auth PHON with flutter to android and IOS and Silent APNs notifications PLZ PLZ PLZ

  20. Hi all please tell me which package contains tomap() and frommap() methods if possible give me link thanks.

  21. What if I don't have the final name for my project, yet? Can I change it later?

  22. But isn´t that solution of updating the data with a Transaction muchh slower than just changing the value as the first solution?

  23. i got this error when run on iphone simulator.

    /Users/nuwan/Downloads/fluttertest/ios/Pods/FirebaseDatabase/Firebase/Database/third_party/Wrap-leveldb/APLevelDB.mm:54:9: fatal error: 'leveldb/db.h' file not found
    #import "leveldb/db.h"

  24. After this video, you gotta see this: https://www.youtube.com/watch?v=6NegFl9p_sE
    and then This: https://www.youtube.com/watch?v=Lb-Pnytoi-8
    they would be helpful after you start implementing Firestore in your product

  25. Guys can someone help me. i try to follow this guide but it doesnt work. my problem is when i try to add the iOS app, it tells me the projectname isnt allowed to have a "_" in it. but androidstudio is forcing me to have this "_" in the package name and i did not have any success changing it later. thx in advance

  26. Very useful, I'm evaluation to move my iOS app using Firestore to Flutter so I don't need to build a native Android app.

  27. When I tried implementing it won't update the vote unless I refresh the page by going to the previous page then back.
    the difference is that I'm passing the "DocumentSnapshot document " to another page using a MaterialPageRoute so my code looks like this :
    IconButton(

    icon: Icon(Icons.thumb_up),

    iconSize: 30.0,

    splashColor: Colors.green,

    *onPressed: () {

    Firestore.instance.runTransaction((transaction) async {

    DocumentSnapshot freshSnap =

    await transaction.get(value.reference);

    await transaction.update(freshSnap.reference, {

    'downVote': freshSnap['downVote'] + 1,

    });

    });

    },
    *
    ),

    where "value = DocumentSnapshot document" passed from the previous page.

    note: when I click on it I see the real-time change in the database but on the app itself it won't change unless I refresh.

  28. error: Missing concrete implementation of StatefulWidget.createState. (non_abstract_class_inherits_abstract_member_one at [flutter_app] libmain.dart:24)
    can you explaine me what is wrong
    i coppied all strings correctly

  29. I searched the whole internet but could not find a single lesson on how to connect flutter and dart to mysql on phpmyadmin (not local host, its hosted on a server) or how to implement CRUD operations, please do some lessons for us, thank you so much

  30. Amazing and a really good explanation. It works to me. I think the documentation in firebase is not up to date because I couldn't be able to run firebase in my flutter app, a lot of problem in gradle file.

  31. I tried to run step by step as explained on https://codelabs.developers.google.com/codelabs/flutter-firebase
    but i stuck on step 11
    some how
    Firestore.instance.runTransaction((transaction) async
    won't work 🙁 and i don't know what to do.

  32. When you install the google-services.plst for ios make sure to install it by opening the project in xcode and right clicking on the Runner Folder and using add file to add the google services file. Otherwise if you drag and drop it in your editor like intellij for some reason it makes the app freakout and create a bunch of errors. Took me 7 hours of trouble shooting to figure out that this was all I needed to do.

  33. Is this still relevant? I tried to use Firestore Package but Gradle doesn't like it and doesn't allow me to build my app.

  34. Hi Google Developers, apart from Firestore, I have heard that Flutter uses Firestore's alternatives. I m not knowing what are those alternatives. Can you please give a list? Its for the purpose of my Final Year Project

  35. I'm not being able to connect the Flutter app to Firebase for iOS. I followed exactly all the steps but I couldn't get the data from the database. Also, I couldn't verify the installation because it never finished. I waited some time there, but got no results. I have looked all over the internet to find a solution but none have been of use. I tried deleting pod files, I checked AppDelegate.swift, pubspec dependencies. All. Please, I really need help here.

Leave a Reply

Your email address will not be published. Required fields are marked *