Firebase Realtime Database
Presented BY
22BTDS192 - Yashwanth V,
22BTDS193 - UDAYASHREE J
22BTDS194 - Tejeshwini R
22BTDS195 - Mohammed Shakil
Agenda
introduction to Firebase
Overview of Firebase Realtime
Database
Key Features
Benefits for Android Development
Working Concept
Data Structure Example
Integration Steps in Android Studio
Use Cases
Limitations
Summary
Introduction to Firebase
Firebase is a Backend-as-a-Service (BaaS) platform developed by Google.
It provides developers with tools and infrastructure to build high-quality apps
quickly.
Services include: authentication, cloud storage, hosting, analytics, messaging, and
databases.
Firebase simplifies backend development, allowing developers to focus more on app
features.
What is Firebase Realtime Database?
A cloud-hosted NoSQL database
Stores data in JSON format
Syncs data across clients in real time
Key Features of Firebase Realtime Database
Real-time data sync
Offline support
JSON-based structure
Event-driven updates
Secure with Firebase Rules
Why Use Firebase Realtime Database in
Android Apps?
Easy Firebase SDK integration
Reduces backend coding
Real-time updates with listeners
Offline-first experience
Scalable and secure
How It Works
Connect app to Firebase
Store/retrieve data using JSON
Listeners get live updates
Works offline and syncs later
Sample Data Structure
users: {
user1: { name: "anu", email: "[email protected]" },
user2: { name: "Ravi", email: "[email protected]" }
}
messages: {
msg1: { text: "Hi!", sender: "user1" },
msg2: { text: "Hello!", sender: "user2" }
}
Integration Steps
Add Firebase to Android project
Include google-services.json
Add dependencies in build.gradle
Use FirebaseDatabase to read/write
Attach listeners for updates
Use Cases
Chat apps
Live dashboards
Collaborative tools
Gaming leaderboards
Limitations
No complex queries
Data stored as flat JSON
Careful planning of structure needed
Costs can increase with scale
Conclusion
Realtime Database = Live syncing JSON cloud DB
Great for dynamic Android apps
Easy to integrate, secure, and offline-ready
Ideal for real-time features