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;"
Thank you so so much It's so clear that can understand how connect to database and write data just following. Thank you for serving this amazing dart language and flutter developers.
#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 😊
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.
Hi, by any chance do you have a video which you can link me to, that tackles the function of reading out-loud data fetched from Firestore as audio to user? Thanks
Is the race condition eliminated? If multiple users initiate a transaction at the same time, won't they both update the same initial value? A ticketing or reservation system could end up double booking if this is the case. 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.
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 - 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.
Hey Andrew, thanks for the awesome video. I have a question. Let's say you log in with firebase and pull some data down e.g. your latest band votes/results. Now lets say you close the app completely, even from the background. Then you open it again with no internet. Will it still use the last data pulled from firestore, or will it use the default values that you demonstrated? Thanks
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
I've some few questions about flutter like MVC pattern, an authentication default process(that's common on other frameworks), localization default pattern...flutter has a great variability of widgets, though to turn itself in a complete solution it needs a little more effort, it's on the right path. Thanks for your reply, & have a nice life.
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.
If transactions are made to prevent race conditions, why can't you use them when you are offline / what do you do when two clients edit the same field of one document and you want to merge the changes (i.e. if the field is a list)
I am aware that firestore is in beta. But if i were to use it in production in one of my apps, Will firebase team notify devs about breaking changes before they were made Please reply
I'm not on the Firebase team (so I can't speak for them), but I'd be *extremely* surprised if that weren't the case. You can always try posting on their discussion forum just to be sure, though: groups.google.com/forum/#!forum/firebase-talk
Every time the list gets updated, is that a read from the database from each item? So 10 items would be 10 reads? Seems far too costly to use firestore database if that's the case.
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"
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" ?
app channels spinning some time when using google firebase database and flutter application. how to download or backup firebase database . is there any automatic backups
I love firebase, but lately using firebase on the ios side has been a pain in the ass. The latest project I started on takes 8 minutes to build when adding the auth and cloud_firestore plugins, and If I try to add the google_sign_in plugin the project simply won't compile. It works fine on Android but on iOS its a very different story. Could you please fix the plugin or update the docs to reflect any changes you have to make to your iOS project to get it to play nicely with firebase and google_sign_in
Thank you for your infromative tutorial. However, we are in 2021 and too much updates applied on Flutter and Dart. Therefore, we need a 2021 videos. Appretiate the help.
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.
try this in -> gradle.properties add: android.useAndroidX=true android.enableJetifier in -> app/build.gradle change: minSdkVersion from 16 to 21 add: dependancies implementation 'androidx.multidex:multidex:2.0.0'
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 ???
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.
I've set this up but it wasn't so straightforward and took a lot of time... different versions of the plugins were incompatible and project settings needed to be modified for both Android and iOS.
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
github.com/beelerb/flutter_firestore_example It's just the code the video starts and ends with but better than nothing and it works. Note the part about the pubspec.yaml file.
PlatformException(FirebaseException, An internal error has occurred. [ API key not valid. Please pass a valid API key. ], null. This error is coming while execution and just saying error signin.
In this video, I'm using the snapshot to build widgets and update the UI, but you can (in theory) do whatever you want with it. For example, you could listen to the stream with a function that stored the data in SQLite, local files, or something similar.
Compact with exactly useful information. The most professional flutter tutorial video I've seen so far. Thank you.
Thanks Andrew! That it very useful! I need to say, you got a natural and friendly voice to explain!
This was really cool! The like button lights up when he gets to the part where he talks about the db updating in response to UI events!
Honestly a really amazing video. Very thorough, informative and somehow condensed into a 12 minute video. Thanks a lot
I feel like this was published just for me in the right time... hahaha
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;"
this was awesome!! please make more like these and go indepth
this covers all I need to know in less than 12 minutes. what a video.
Thank you so so much It's so clear that can understand how connect to database and write data just following. Thank you for serving this amazing dart language and flutter developers.
#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 😊
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.
Thanks, Andrew sir, Please keep coming with more videos
Hi, by any chance do you have a video which you can link me to, that tackles the function of reading out-loud data fetched from Firestore as audio to user? Thanks
Oooooooooooooooooooh my good that's exactly what i was searching for thaaank you so much google i looooooove you man
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?
They put the iOS screenshot on the pixel...
Hey,
Thank you very helpful video, I have question is this was an UI kit mobile app?
Is the race condition eliminated? If multiple users initiate a transaction at the same time, won't they both update the same initial value? A ticketing or reservation system could end up double booking if this is the case.
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.
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 - 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.
I like illustrative video, awesome explanation great job,
Thank you Google and Andrew Brogdon!
Hey Andrew, thanks for the awesome video. I have a question. Let's say you log in with firebase and pull some data down e.g. your latest band votes/results. Now lets say you close the app completely, even from the background. Then you open it again with no internet. Will it still use the last data pulled from firestore, or will it use the default values that you demonstrated? Thanks
when a new document is added, snapshot fetches all the documents including the new one or only the newly added one ?
Is there a place I could find the code used in this video? A github link or something?
Thank you so much! Great content
thank u for this tuto i want to ask you how can i get a stream from a specific user
Could we get some content on how to unit test and mock firestore? It's really hard to unit test streams and no information anywhere.
I am getting error for iOS xcode build - cloud_firestore/CloudFireStorePlugin.h not found
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
I've some few questions about flutter like MVC pattern, an authentication default process(that's common on other frameworks), localization default pattern...flutter has a great variability of widgets, though to turn itself in a complete solution it needs a little more effort, it's on the right path.
Thanks for your reply, & have a nice life.
Really thanks, that was awesome and pretty clear
Hi all please tell me which package contains tomap() and frommap() methods if possible give me link thanks.
hi guys . is there a tutorial out there about how to set custom claims / role based auth / rolebased access contorll in flutter using firebase?
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.
If transactions are made to prevent race conditions, why can't you use them when you are offline / what do you do when two clients edit the same field of one document and you want to merge the changes (i.e. if the field is a list)
i got an error that "subproject has been already used in build script" how to resolve it??
I can use flutter and firebase in my androids and ios while on web I use React and firebase? Thanks.
i didnt really follow why we changed the onTap function from a plain update to something else...could someone help me out on this please?
Hi i had error with gradle task assembledebug failed with exit code 1
Can you help me
What about AngularDart/dart2js? Is the flutter team different from angulardart team?
Is there a convinient way to transfer firebase project from one google acc to another?
Just wonderful !
I am aware that firestore is in beta. But if i were to use it in production in one of my apps, Will firebase team notify devs about breaking changes before they were made
Please reply
I'm not on the Firebase team (so I can't speak for them), but I'd be *extremely* surprised if that weren't the case. You can always try posting on their discussion forum just to be sure, though: groups.google.com/forum/#!forum/firebase-talk
They have been warning people about the changes in Firestore. For example, the change of dates to Timestamps
*GREAT JOB YOU GUYS ARE THE BEST*
If there are lots of documents in collection, stream builder is very slow. Isn't it?
Can u able to fetch document files containing images and text from Firestore and display in flutter app?
You have to upload the images to Firebase Storage, then you paste the Storage reference of each file in Cloud Firestore
Same question i have
Every time the list gets updated, is that a read from the database from each item? So 10 items would be 10 reads? Seems far too costly to use firestore database if that's the case.
what about youtuber api? any vídeo on it?
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"
I loved this guide, please more tutorials about flutter + firebase o/
Can I use flutter to make a order delivery + customer loyalty app?
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" ?
2:56
So your atomic operation can be async?
app channels spinning some time when using google firebase database and flutter application. how to download or backup firebase database . is there any automatic backups
So well explained!
I love firebase, but lately using firebase on the ios side has been a pain in the ass. The latest project I started on takes 8 minutes to build when adding the auth and cloud_firestore plugins, and If I try to add the google_sign_in plugin the project simply won't compile. It works fine on Android but on iOS its a very different story. Could you please fix the plugin or update the docs to reflect any changes you have to make to your iOS project to get it to play nicely with firebase and google_sign_in
Thank you for your infromative tutorial. However, we are in 2021 and too much updates applied on Flutter and Dart. Therefore, we need a 2021 videos. Appretiate the help.
Does not work on Android with cloud_firestore:, I need to add the version cloud_firestore: ^0.7.4 :(
Says cannot use firestore
Same problem me
What about Google Cloud Datastore? Are there any examples of using that as a backend for Flutter projects?
Great video, thanks!
THIS MAN KNOWS WHAT HE'S DOING
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.
try this
in -> gradle.properties
add:
android.useAndroidX=true
android.enableJetifier
in -> app/build.gradle
change:
minSdkVersion from 16 to 21
add:
dependancies
implementation 'androidx.multidex:multidex:2.0.0'
Do you have to choose between Firestore and the Realtime Database or can you have both?
You can indeed use both in the same app: firebase.google.com/docs/firestore/firestore-for-rtdb
Its amazing how simple this was to implement.
I am getting error from iOS xcode build - module “cloud_firestore” not found…. How can I fix the error
hey can u please help me with this problem
Exception: Gradle task assembleDebug failed with exit code -1
Can I use Firestore as a backend to my Wibblewobble app, with Zigizigah as the front end?
Only if you really really really wanna.
I'd love to see this kind of video.
Is it possible to stream mp4 or mkv video from url? In flutter
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 ???
Hi, I want to know about Cloud firestore how to connect with flutter windows app,
please help me,
Thank you.
But isn´t that solution of updating the data with a Transaction muchh slower than just changing the value as the first solution?
What is best for android or flutter in future?
This looks surprisingly easy
how can i listen to a single document by a given key rather than a whole collection?
This is good. But please update the codelab to the recent changes, like the firebase core requirement.
I find it very helpful.
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.
what's the difference between Firebase Real-time Database and Firebase Firestore?
The Firebase team has an article that can explain it way better than me. :) firebase.google.com/docs/database/rtdb-vs-firestore
Andrew Brogdon, that's what I like in Google - they foresee all my questions :)
Thanks Andrew!
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.
my app stops whenever i run it. 'Unfortunatelly app has stopped'. Ididnt write any code, i just added the firestore.
This is really great stuff
Super useful video!
Gradle problem when i try to use firebase.. fix this
Andrew Brogdon: 10:04
Me: Yeah I Know... I Know...
I've set this up but it wasn't so straightforward and took a lot of time... different versions of the plugins were incompatible and project settings needed to be modified for both Android and iOS.
Hi, Someone knows how to do a join in firebase and flutter ?
why there is no doc support for flutter in firebase portal ???
Is there any free web development course offering by google.
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
I wish you showed us the whole code, it doesn't work. And it gives a load of errors.
Can I use golang as my server side language with flutter?
What if I don't have the final name for my project, yet? Can I change it later?
Yes you can
please is there a GitHub repository to this tutorial?
github.com/beelerb/flutter_firestore_example
It's just the code the video starts and ends with but better than nothing and it works. Note the part about the pubspec.yaml file.
*Glowing Green Screen*
snapshot.data.length? The getter 'length' isn't defined for the type 'Object'. Anybody?
PlatformException(FirebaseException, An internal error has occurred. [ API key not valid. Please pass a valid API key. ], null.
This error is coming while execution and just saying error signin.
Could you make a video how to join collections?
is there a way to store values locally using flutter and a local database like SQL?
In this video, I'm using the snapshot to build widgets and update the UI, but you can (in theory) do whatever you want with it. For example, you could listen to the stream with a function that stored the data in SQLite, local files, or something similar.
thanks a lot Andrew
Hi Sundar Pichai !!
Are you listening?
Codelab link not working. Please update it.
beautiful !!!!