What is Firebase Realtime Database?
Firebase Database is a cloud-hosted database that made by google to help developer not give much effort and time to handle the backend thing like real-time synchronize and offline support.
Firebase Realtime Database store and sync data into the cloud server, and when ever you update the database, it will notifies all interested devices in milliseconds. This database also optimized for offline condition. because when user go offline or lost their connections, Firebase Database STK uses a local cache on device to store the last changes. When user comes back online, the saved local data automatically synchronized. and firebase realtime database is so secure, even though it cloud-based because user can set who have the access to the database. firebase database is NoSQL database because the data is saved on JSON tree rather than on table, so it eliminated the need for complex SQL queries.
Requirement
- Make sure you already have google account
- the project that want to connect to firebase database
3.Android Studio(Minimun Version 2.2) - Android 4.0 devices or Higher.
Let's Start
We have to create firebase project using android studio by following this step :
1. select menu tools->firebase
2. There are many services that Firebase offered, but in this tutorial we only using firebase real time database, so we gonna click Realtime Database and select save and retrieve data.
3. Select connect to Firebase
4. Because we don't have existing firebase project, we will create a new one. if you want the firebase project has the same name with your apps project, you can directly choose country, or if you want the different name, just fill it with your favorite name. In this tutorial, i will use the same name with the apps.
5.Choose country from the project. This link is the reason why we have to choose country to create firebase project.
6. If everything is done, just click connect to firebase and wait for some seconds
7. If we success to create our firebase project, this sign will appear
that means our firebase realtime database is ready to use. but, we cannot add firebase realtime database to our apps, because the firebase dependencies in gradle file is not added yet. so, we must add the gradle file by following this step.
8. Click button Add the Realtime Database to your app.
9. A pop up message will come to inform us that a new dependencies will be added in the build.gradle file,so we can use firebase database feature in our apps. just click Accept change on that pop up.
10. Congrats!! :) our firebase realtime database has been added to our apps and ready to use.
I think this is what i can share right now. You can make it better by modify as you want too. Thanks for reading this tutorial.
Cheers
Posted on Utopian.io - Rewarding Open Source Contributors
Good post :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thanks @kakilasak :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
mantap bang
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Makasii kak :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thanks :)
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey @jaysilen07 I am @utopian-io. I have just upvoted you!
Achievements
Suggestions
Get Noticed!
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit