I would like to see more in-depth tutorials regarding the realtime, NoSQL. How to setup user specific data vs public data... etc. For me, this has been the hardest obstacle and what is holding me back from fully embracing Firebase.
Hey there , i am not sure if you still checking out these comments so hope u do, anyway the way firebase works make it impossible to retrive data while there is no changes , in my case i update some info from time to time , so basicly whenever i fire up the app I dont have any info showing untill i do some updates which does seems logic ( there must be a way to see available data even like rational database and quieries !)
Am I missing something? Where did you give the URL of the database? Apparently in the new API you don't need to specify the URL since the URL is automatically determined from the new google-services.json file you downloaded, but you did not mention that too.
+Eralp Şahin Good point! I probably should have pointed to it in the project structure. We're trying to keep these focused on just the specific SDKs. We'll soon have an overview video on the general Firebase setup which will include downloading the google-services.json file.
Small pointer, if you find yourselves stuck trying to connect to the database and the Simulator seems to have no problems with it ... That means you're using Cloud Firestore so switch to Realtime Database (it was the only one that existed when this video was made). Hope it helps!
Hey David, not sure if you still check these comments but regardless I have a question. I was just wondering if it uses a lot of mobile data to be constantly checking a database for any changes while the app is running? Cheers.
Hey Jonty! It solely depends on the size of the data. If the node you are synchronizing is 4kb is size, it will cost 4kb for the initial download and then the Realtime Database will try to do delta updates after that download. So the real answer is, it depends on what you are downloading. Most of the time it's not a problem, but make sure to test this in your app to be sure!
Good video, could you please refer to the previous video? Or like the very first tutorial, bc I'm building an app and i googled databases for android and i got here. But I don't know where to start with firebase (like setting up on my computer, inner workings, etc)
Hello, I have two devices with two different apps and I want to send the notification from one app to other, both apps are sharing the same database. How can I do that with FCM??
Hello I want to thank you first for this clear video , I'm building an app with a 5 predefined users(My family) , there will be a data exchanging between this 5 users through a database connected to internet(I hope firbase can do this) Now i want to set 5 data files for each User(each files will contain data that the user will control) so for each user it will be a view which depends on data on his files and those data files will be changed after a user set a change through My App. Thank you =)
Maybe is a dumb question: but that kind of database can replace the regular BD's like postgresBD, MySQL and others, is good use the firebase realtime database if i have a huge size of data or only should use in special cases. Thanks in advance and greetings from Colombia
what is the difference between Idtoken() and Uid in firebase? (regarding Google Sign in) which one should I use in firebase realtime database to store data according to user identity. I am using android studio with java.
how do I query data with multiple where clause? i'm new to Firebase database and have been working only on relational database hence the question. a video covering the topic of my question will be of great help. thanks!
onStart() will be called only after onCreate() and it is recommended to put all network/resource intensive operation in onStart() to prevent the screen from freezing (ANRs)
Can you update this to the 2020 look? It does not look like this anymore, and I am just starting to learn it, so I do not know what is what compare to this. Thanks.
I want to save data based the user. For ex. If iam one of the user if like banana it should saved under my id. Another user likes Orange then when he sign in to the app Orange should be displayed. Let me know your suggestion. Thanks
I'm doing a chat app with firebase, when I got value from firebase, it looks like this "{name="Ronaldo", text="I dont know"}. I knew it's not json data, so how can I get the name and text, and add the new one?
Hey Firebase-Team, i would like to request a feature that is needed by many users of your realtime-databases. Incrementing a Value. Now, the only way to increment a value is to get the value, increment in on the device and store it again. If a single value is incremented by many different users at the same time, the value will be corrupted and jumps between values. Greetings, a happy user of your firebase realtime databases.
i tried to make an app looking your old videos now since i have updated my firebase database to legacy console i got lots of error.i also had updated my android studio to 2.1 and gradle to 2.10. now my app have lots of error.what should i do?should i start a new project or is there someway to manage those errors?
Hello! i am making a multiplayer game using realtime database. whenever i click a button to drag a coin in one phone on the other phone the activity refreshes again and again without any errors. i have added to change the ui code in onDataChange . but the screen refreshes again and again. is it because of the issue of ui and firebase thread? Please help.
am using firebase to develop an android app which work somewhat as instagram but i am confussed that what if i use firebase to upload and download images as insta.. then their will be more bandwidth use and then the charges of firebase will be more. .. i want to ask how much it may cost and is it good to make such app on firebase behalf of monthly charges??
Okay. I was able to retrieve data. I am sure about it as I set Log for it. Am also able to assign it to another String object. But, am not able to use it to set text of a TextView. Please help.
Hello Sir, There is some problem using this video. Please help to resolve it. Error:Failed to capture snapshot of output files for task 'transformClassesWithDexForDebug' property 'streamOutputFolder' during up-to-date check. > Failed to create MD5 hash file.
Initialization of all Firebase features on Android typically happens through a build configuration documented here: firebase.google.com/docs/android/setup
Need some help, how do i solve this error.. Error:Execution failed for task ':app:processDebugGoogleServices'. > File google-services.json is missing. The Google Services Plugin cannot function without it. Searched Location: F:\FAST\app\src\debug\google-services.json F:\FAST\app\google-services.json
Hello, I am facing some difficulty in making database for saving user information like name phone number address etc. I don't know how to store that data which such that user can acccess his information and edit it anytime... Thanks in advance
compile 'com.google.firebase:firebase-core:9.0.0' compile 'com.google.firebase:firebase-database:9.0.0' These 2 lines are giving me a failed to resolved error. What do I do?
hello I'm from IRAN , And google doesn't let us to use all of the google! _ and I want to know do we can use this "Firebase database" ? beacuse I saw the "IRAN" name in "firebase.google" for add an new app . Could you please answer my qustion?(: (I'm sorry for my speaking ... beacause I speak persian and I can't speak english well)
You can now use Cloud Functions for Firebase for this: firebase.google.com/docs/functions/ Sample code: github.com/firebase/functions-samples/tree/master/fcm-notifications
Error:Execution failed for task ':app:processDebugGoogleServices'. > No matching client found for package name 'com.example.divyank.docline' what to do
Hello I am making my final year project I just need to know that when usler add 3 relatives then a message of confirmation should be sent to all relative the same message at one time kindly help me by giving code
Hello David! I am creating an android app in which I need to modify specific user detail in the database. I am using the push() function to add the user data in the database. Now when I need to parse the data , how can I refer to the auto generated key to modify the details in the json tree?
you will probably have to get all the user data, and then search. By using the push feature, you basically let go of the ability to give meaningful key-names to your data
I made a firebase and set a tag "1484" to the value "1". I made the app read and writeable for non authenticated users. Still I cant access the database with my app I made with mit appinventor 2, can anyone help me?
Instead of a timer in firebase you can use it in your java code just sync it with the firebase final Handler handler = new Handler(); handler.postDelayed(new Runnable() { @Override public void run() { //Do something after 100ms } }, 100);
i got stuck here please help me someone im importing the library of import com.google.firebase.auth.FirebaseAuth; it shows cannot resolve symbol FirebaseAuth ??????
Sir, I have problem with my app my tree is like this java what is java topicName: what is java topicData : what is data Subtopic inheritance SubtopicName: inheritance SubtopicData:***** this is my structure in that subtopic can be multiple i have reference of subject that is java. and i can get data which is what is java and topicData using class. but how to retrieve subtopic or can u suggest me different structure please help
why it is used : Databasereference mRootRef = FirebaseDataBase.getInstance().getReference(); in the video but at firebase.com in docs they use: Firebase rootRef = new Firebase("docs-examples.firebaseio.com/web/data"); -what's the difference ?when we should use 1st one & when the 2nd one?? :S
When i remove "DatabaseReference scoresRef = FirebaseDatabase.getInstance().getReference("scores"); scoresRef.keepSynced(true);" This then working But i am using this to Save Permanent Data Offline
Try everything in this tutorial using Firebase Database Admin Manager - RTDB Manipulator play.google.com/store/apps/details?id=com.shivang.managefirebasedatabase.free
I am using Android studio to develop Android app. I can not find library dependencies: com.google.firebase:firebase-database:9.0.0. in File/Project Structure ? Could anybody explain help me resolve it ?
if you havent solved this you would need to update to "com.google.firebase:firebase-database:10.0.1" so got to Gradle Scripts > build.gradle(Module:app) : then then go to the dependencies section and it should look like: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.google.firebase:firebase-auth:10.0.1' compile 'com.google.firebase:firebase-database:10.0.1' } //theres a good guide here: firebase.google.com/docs/android/setup
On a Mac, you can use iMovie to add the images into the video and use QuickTime Player to record your screen and also record audio during the screen recording. Screen recording on a Mac is very straightforward. I was able to do one for a college group project demo video that we had to submit as one of our assignments.
#AskFirebase Hello, pleas make more videos, with content more complex. For example, persistind data objects in a real time. Editing this datas and editing also in real time database.
PLEASE ! *MORE TUTORIAL WITH ANDROID*
ABOUT Authentication
They will not
Amazingly easy, i just was learning how to do this on my own hosted mysql database and it was so much more complicated. Good job Firebase team!
+Steve Marty Boom goes the dynamite!
Thanks Davi, Learning from people who are engaged in building/updating the Firebase really boosts our confidence
The best and easiest help to get started with firebase database.
I would like to see more in-depth tutorials regarding the realtime, NoSQL. How to setup user specific data vs public data... etc. For me, this has been the hardest obstacle and what is holding me back from fully embracing Firebase.
Hey there ,
i am not sure if you still checking out these comments so hope u do, anyway the way firebase works make it impossible to retrive data while there is no changes , in my case i update some info from time to time , so basicly whenever i fire up the app I dont have any info showing untill i do some updates which does seems logic ( there must be a way to see available data even like rational database and quieries !)
Am I missing something? Where did you give the URL of the database? Apparently in the new API you don't need to specify the URL since the URL is automatically determined from the new google-services.json file you downloaded, but you did not mention that too.
+Eralp Şahin Good point! I probably should have pointed to it in the project structure. We're trying to keep these focused on just the specific SDKs. We'll soon have an overview video on the general Firebase setup which will include downloading the google-services.json file.
Thank you for this
Small pointer, if you find yourselves stuck trying to connect to the database and the Simulator seems to have no problems with it ... That means you're using Cloud Firestore so switch to Realtime Database (it was the only one that existed when this video was made). Hope it helps!
Hey David, not sure if you still check these comments but regardless I have a question. I was just wondering if it uses a lot of mobile data to be constantly checking a database for any changes while the app is running? Cheers.
Hey Jonty! It solely depends on the size of the data. If the node you are synchronizing is 4kb is size, it will cost 4kb for the initial download and then the Realtime Database will try to do delta updates after that download. So the real answer is, it depends on what you are downloading. Most of the time it's not a problem, but make sure to test this in your app to be sure!
how to add new node to the database instead of value???
Good video, could you please refer to the previous video? Or like the very first tutorial, bc I'm building an app and i googled databases for android and i got here. But I don't know where to start with firebase (like setting up on my computer, inner workings, etc)
Hello, I have two devices with two different apps and I want to send the notification from one app to other, both apps are sharing the same database. How can I do that with FCM??
Please do a tutorial on Retrieving data from firebase and showing them in Listview
Hello I want to thank you first for this clear video ,
I'm building an app with a 5 predefined users(My family) , there will be a data exchanging between this 5 users through a database connected to internet(I hope firbase can do this)
Now i want to set 5 data files for each User(each files will contain data that the user will control)
so for each user it will be a view which depends on data on his files and those data files will be changed after a user set a change through My App.
Thank you =)
You're updating the value and then getting through addValueEventListener but suppose if we just want only the value from the database ?
What tablet were you using in this demo? And what screencast tools did you use to get your hand overlay to show you writing on the screen.
Please create videos on how to store user data from auth providers..
Maybe is a dumb question:
but that kind of database can replace the regular BD's like postgresBD, MySQL and others, is good use the firebase realtime database if i have a huge size of data or only should use in special cases.
Thanks in advance and greetings from Colombia
what is the difference between Idtoken() and Uid in firebase? (regarding Google Sign in)
which one should I use in firebase realtime database to store data according to user identity.
I am using android studio with java.
how do I query data with multiple where clause? i'm new to Firebase database and have been working only on relational database hence the question. a video covering the topic of my question will be of great help. thanks!
Stupid question: Why is he putting the code in onStart()?
onStart() will be called only after onCreate() and it is recommended to put all network/resource intensive operation in onStart() to prevent the screen from freezing (ANRs)
He is just updating UI. UI will be visible to the user only after onStart().
How does Firebase know what real time database to connect to? how do i make it connect to my database?
DatabaseReference mDataRef = FirebaseDatabase.getInstance().getReferenceFromUrl("YOURURLHERE");
Thx
Hi david, nice tutorial. I wanted to know how can I query data irrespective of data changed? How can I retrieve data as when I need it?
Yeah, make a video using the firebase storage
Can you update this to the 2020 look? It does not look like this anymore, and I am just starting to learn it, so I do not know what is what compare to this. Thanks.
Please create a video using firebase storage
It's in the works!
OK
Hi David, are your previous videos on firebase recyclerview, listview still valid tutorials?
Hi David,
i want to know that how we can create database/table in firebase and then how we can retrieve a data from the app.......>???
I develop mobile application for Android, I want ask ,which better connect database by fire-base "Realtime or Authentication " ????
Very good introduction to the database !
I want to save data based the user. For ex. If iam one of the user if like banana it should saved under my id. Another user likes Orange then when he sign in to the app Orange should be displayed. Let me know your suggestion. Thanks
I'm doing a chat app with firebase, when I got value from firebase, it looks like this "{name="Ronaldo", text="I dont know"}. I knew it's not json data, so how can I get the name and text, and add the new one?
What is the best way to get a .csv into a very simple database in firebase if I don't need it to be synced with users?
If the data flow is button -> firebase -> on-screen value, what happens when there is not internet connection?
Please Tutorial about how to use Query class to retrieve data.
Hey Firebase-Team, i would like to request a feature that is needed by many users of your realtime-databases.
Incrementing a Value. Now, the only way to increment a value is to get the value, increment in on the device and store it again. If a single value is incremented by many different users at the same time, the value will be corrupted and jumps between values.
Greetings, a happy user of your firebase realtime databases.
how about retrieving values for multiple keys to be used as dataset for chart?
i tried to make an app looking your old videos now since i have updated my firebase database to legacy console i got lots of error.i also had updated my android studio to 2.1 and gradle to 2.10. now my app have lots of error.what should i do?should i start a new project or is there someway to manage those errors?
Hello!
i am making a multiplayer game using realtime database. whenever i click a button to drag a coin in one phone on the other phone the activity refreshes again and again without any errors. i have added to change the ui code in onDataChange . but the screen refreshes again and again.
is it because of the issue of ui and firebase thread?
Please help.
am using firebase to develop an android app which work somewhat as instagram but i am confussed that what if i use firebase to upload and download images as insta.. then their will be more bandwidth use and then the charges of firebase will be more. .. i want to ask how much it may cost and is it good to make such app on firebase behalf of monthly charges??
Okay. I was able to retrieve data. I am sure about it as I set Log for it. Am also able to assign it to another String object. But, am not able to use it to set text of a TextView. Please help.
What if we had to retrieve a timestamp from the database into a textview instead? Is it the same process?
Hello Sir,
There is some problem using this video. Please help to resolve it.
Error:Failed to capture snapshot of output files for task 'transformClassesWithDexForDebug' property 'streamOutputFolder' during up-to-date check.
> Failed to create MD5 hash file.
Is there a way to allow users to search the database and get the corresponding data value like entering a persons name and getting phone number???
Can I ever dispense with classic databases and use Firebase forever?
How does your app know what's your fiirebase account from where the data is to be fetched? I didn't see you initializing this thing.
Initialization of all Firebase features on Android typically happens through a build configuration documented here: firebase.google.com/docs/android/setup
Thank you for doing this video. It was super helpful.
Need some help, how do i solve this error..
Error:Execution failed for task ':app:processDebugGoogleServices'.
> File google-services.json is missing. The Google Services Plugin cannot function without it.
Searched Location:
F:\FAST\app\src\debug\google-services.json
F:\FAST\app\google-services.json
Hello, I am facing some difficulty in making database for saving user information like name phone number address etc. I don't know how to store that data which such that user can acccess his information and edit it anytime...
Thanks in advance
got problem including google play services.
my studio says it failed for '.app.processDebugGoogleServices'
can you tell me why this happens???
How can I create a Database to a website? Everytime a website updates some info it sends the update to the app with the new story or whatever?
Very easy to understand, thanks
Thanks for this great video. I will use this solution on a small app.
hi, is that possible to retrieve the particular field from the real time database table to an app?
I need help I am getting following error "Google Play services out of date. Requires 9683000 but found 8489470"
Awesome explained.
compile 'com.google.firebase:firebase-core:9.0.0'
compile 'com.google.firebase:firebase-database:9.0.0'
These 2 lines are giving me a failed to resolved error. What do I do?
hello
I'm from IRAN , And google doesn't let us to use all of the google!
_
and I want to know do we can use this "Firebase database" ?
beacuse I saw the "IRAN" name in "firebase.google" for add an new app .
Could you please answer my qustion?(:
(I'm sorry for my speaking ... beacause I speak persian and I can't speak english well)
#AskFirebase Can we store extremely large amount of data in this manner and provide access to users.??
I did all what you have shown.................But no change on the emulator while I write on the firebase..............why?
I don't understand how I connect this to my firebase, you don't put your firebase URL anywhere in the code... I'm missing something here
google-services.json which you generate from firebase console has those information, you need to include it your project/app folder
How can i provide notifications to android while on data change in firebase
You can now use Cloud Functions for Firebase for this: firebase.google.com/docs/functions/
Sample code: github.com/firebase/functions-samples/tree/master/fcm-notifications
Error:Execution failed for task ':app:processDebugGoogleServices'.
> No matching client found for package name 'com.example.divyank.docline'
what to do
Can I write a rule that "if Realtime Database value changes it will immediately send a popup to the client"
Hello I am making my final year project I just need to know that when usler add 3 relatives then a message of confirmation should be sent to all relative the same message at one time kindly help me by giving code
its super simple....thanx alot guyz....
Hello David!
I am creating an android app in which I need to modify specific user detail in the database.
I am using the push() function to add the user data in the database. Now when I need to parse the data , how can I refer to the auto generated key to modify the details in the json tree?
you will probably have to get all the user data, and then search. By using the push feature, you basically let go of the ability to give meaningful key-names to your data
I made a firebase and set a tag "1484" to the value "1". I made the app read and writeable for non authenticated users. Still I cant access the database with my app I made with mit appinventor 2, can anyone help me?
thanx for the tutorial could you show mi how to retrieve numbers from a firebase realtime database
Which changes speed the Database supports? I wanna a 1 hundred people change the value, is it works fine?
#authentication.......I want to learn more about it.
do you have a blog for this tutorial?
is it also possible for a countdown timer in the firebase? like the timer is counting down inside the database?
Instead of a timer in firebase you can use it in your java code just sync it with the firebase
final Handler handler = new Handler();
handler.postDelayed(new Runnable() {
@Override
public void run() {
//Do something after 100ms
}
}, 100);
Can we save a date on firebase?
Can i create a management system like app with firebase that have crud operations???
Why put "valueChangeListener" inside "onStart()" instead of "onCreate()"?
i got stuck here please help me someone
im importing the library of
import com.google.firebase.auth.FirebaseAuth;
it shows cannot resolve symbol FirebaseAuth ??????
Is it possible to alter data of android firebase realtime database from web server of app or any other method
Sir, I have problem with my app
my tree is like this
java
what is java
topicName: what is java
topicData : what is data
Subtopic
inheritance
SubtopicName: inheritance
SubtopicData:*****
this is my structure in that subtopic can be multiple i have reference of subject that is java. and i can get data which is what is java and topicData using class. but how to retrieve subtopic or can u suggest me different structure please help
Can Firebase store and retrieve data like relational model like adding constraint to the table?
excelente explicación, gracias, ojala y puedan subir mas vídeos con subtitulos en español si fuese posible. Saludos
can you upload picture , make relational database using firebase ?? can make social mobile application .... ???
Hello, is it possible to send data from arduino (sensors data) to firebase database? if so please let me know how
How to send Notifications to the user when Realtime database gets updated
how to add multiple data into firebase without removing previous one..?
patch
Does this code even works now? It is 4 years old
why it is used :
Databasereference mRootRef = FirebaseDataBase.getInstance().getReference();
in the video but at firebase.com in docs they use:
Firebase rootRef = new Firebase("docs-examples.firebaseio.com/web/data");
-what's the difference ?when we should use 1st one & when the 2nd one?? :S
neo4now
how to search nearby distance with firebase by longitude?
You guys are great!
When i remove "DatabaseReference scoresRef = FirebaseDatabase.getInstance().getReference("scores");
scoresRef.keepSynced(true);"
This then working But i am using this to Save Permanent Data Offline
What if I want authentication users to have their own tree in a database?
Can anyone tell me how to apply pagination (AKA infinite scroll) in our app through FireBase??
Very good material indeed!
Try everything in this tutorial using Firebase Database Admin Manager - RTDB Manipulator
play.google.com/store/apps/details?id=com.shivang.managefirebasedatabase.free
i did not got to know how is the app is connected to ur firebase account ...
reply soon
I am using Android studio to develop Android app. I can not find library dependencies: com.google.firebase:firebase-database:9.0.0. in File/Project Structure ? Could anybody explain help me resolve it ?
if you havent solved this you would need to update to "com.google.firebase:firebase-database:10.0.1"
so got to Gradle Scripts > build.gradle(Module:app) : then
then go to the dependencies section and it should look like:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.google.firebase:firebase-auth:10.0.1'
compile 'com.google.firebase:firebase-database:10.0.1'
}
//theres a good guide here: firebase.google.com/docs/android/setup
dude what tablet you using
what is name of this software that r u using?
How does Firebase know what real time database to connect to? how do i make it connect to my database?
The connection part is not shown in the video here is the link -
developer.android.com/studio/write/firebase
unrelated to firebase, but how do you make a video like this?
I'm commenting so i will get notified when someone answers this question.
On a Mac, you can use iMovie to add the images into the video and use QuickTime Player to record your screen and also record audio during the screen recording. Screen recording on a Mac is very straightforward. I was able to do one for a college group project demo video that we had to submit as one of our assignments.
hello, can we store pdf files in real time database and retrieve them in our app?
you can store them in your Storage Database instead of Realtime Database
#AskFirebase Hello, pleas make more videos, with content more complex. For example, persistind data objects in a real time. Editing this datas and editing also in real time database.