🔥 Firebase Setup · Family Care

Connect Your Family
to Real-Time Alerts

Step-by-step guide to set up Firebase for Family Alert. Free, 5 minutes, no technical knowledge needed.
⏱️ Takes only 5 minutes · 100% free
First Things First

What is Firebase and why do we need it?

🔥 Firebase is Google's free messaging backbone

Firebase Realtime Database is a service by Google that lets two phones exchange messages instantly — like a private messaging channel that belongs to you. When your family member taps an emergency alert, Firebase delivers it to every connected phone in under 2 seconds, even if they are in another city.

Under 2 seconds
Faster than WhatsApp
🌍
Works worldwide
Any country, any network
🔒
Your own project
Data belongs to you only
₹0
Completely free
100k alerts/day, no card
Real Experience

Problems we faced & how we fixed them

Before Firebase was working, Family Alert was not delivering messages to other family members. Here is exactly what went wrong and how each issue was resolved:

📋 Our Troubleshooting Log

Problem
Alerts sending but family not receiving
The Family Alert screen showed "Firebase Active" but the other family member's phone was not getting any notification. Messages seemed to be going nowhere.
Fix
Firebase URL was not pushed to all users
The Firebase URL was saved only on the admin's phone. Other family members had no URL so they were not listening. Solution: Admin tapped Push Live in Admin Panel → Family Alert. After that, every device auto-received the Firebase URL on next app open.
Problem
Firebase Database Rules blocking write access
Firebase was configured but the app returned a "Permission Denied" error when trying to send an alert. The database was rejecting the write request.
Fix
Database Rules must be set to Test mode
In Firebase Console → Realtime Database → Rules, the rules were set to locked mode (read/write: false). Changed to Test mode rules: {"rules":{".read":true,".write":true}} — and alerts started working immediately.
Warning
Test mode rules expire after 30 days
Firebase automatically switches back to locked rules after 30 days in test mode. If alerts suddenly stop working after a month, go back to Firebase Console → Rules and reset to test mode. This only takes 30 seconds.
Problem
Family member joined but not appearing in Head's list
After entering the invite code and PIN, the member got a confirmation code — but before they could copy it, the screen refreshed and the code disappeared. Head never received the confirmation code so the member could not be added to the list.
Fix
Confirmation code now stays visible until manually dismissed
The app was auto-refreshing the Family tab 1.5 seconds after joining, which cleared the confirmation code. This is now fixed — the confirmation code stays on screen permanently after joining so you have time to copy and share it with the Family Head.
Setup Guide

How to set up Firebase — step by step

The Family Head (whoever manages the app) does this once. All other family members connect automatically — they do not need to do anything.

1
Open Firebase Console
On your phone or computer, open your browser and go to:
console.firebase.google.com
📌 Sign in with the same Google account you normally use (Gmail, YouTube, etc.)
2
Create a new project
Tap Add project → Give it any name (e.g. "FamilyCare" or your family name) → Tap Continue → Continue → Create project.
✅ The name does not matter — pick anything you will remember
3
Create Realtime Database
In your project, look at the left menu and tap BuildRealtime DatabaseCreate Database.
📌 Choose any region (the closest one to India is usually asia-southeast1)
4
Select Test Mode — IMPORTANT
Firebase will ask you to choose security rules. Select "Start in test mode" → tap Enable.
⚠️ If you pick "locked mode" the app cannot send alerts. Always choose Test mode.
5
Copy your Database URL
After creating the database you will see a URL at the top of the page. It looks like this:
https://your-project-name-default-rtdb.firebaseio.com
✅ Copy this full URL — you will paste it in Family Care next
6
Paste URL in Family Care Admin Panel
In Family Care app → open Admin Panel (11-tap on footer) → go to Family Alert tab → paste the URL in the Firebase URL field → tap 🔥 Save & Activate for All Users.
7
Push to all family members
After saving, tap Push Live. All family members will automatically receive the Firebase URL when they next open the app — they do not need to do anything.
✅ Setup complete! Family Alert is now live for everyone.
How It Went

Our successful setup experience

Family Alert fully working — here is what we did
Real setup experience from the 4xon.com team
Created Firebase project in under 3 minutes on console.firebase.google.com using a Gmail account.
Enabled Realtime Database in Test mode — selected the Singapore region for fastest India response.
Copied the database URL and pasted it in Admin Panel → Family Alert → tapped Save & Activate.
First test alert (Emergency) — appeared on the second phone in under 1.5 seconds with sound and vibration.
Encountered the rules expiry issue after 30 days — fixed in 30 seconds by going back to Firebase Rules and re-enabling test mode.
Firebase free tier handled all family alerts with zero cost — no billing setup was ever needed.
For Users

Using your own Firebase URL

If you want your family's alerts on your own personal Firebase project (separate from the app's admin Firebase), you can now do this directly in the app:

📱 How to use your own Firebase in the app

Steps
Open Family Alert → ⚙️ Settings
1. In Family Care, go to Family Alert screen
2. Tap the ⚙️ settings button (top right)
3. Under "Firebase Connection" select "Use My Own Firebase URL"
4. Enter your Firebase URL (follow steps 1–5 above to get one)
5. Tap Save My Firebase URL

Your alerts will now use your personal Firebase — unlimited capacity, fully private.
✅ Why use your own Firebase?
🔒Completely private — only your family uses this database
♾️Unlimited alerts — not shared with other app users
🎛️You control the rules and can see all data in Firebase Console
FAQ

Common questions

Does Firebase cost money?
+
No. Firebase Realtime Database free tier (called Spark plan) includes 100,000 simultaneous connections and 10GB of data per month. A family sending emergency alerts will never come close to these limits. No credit card is ever required for the free plan.
What happens after 30 days in Test mode?
+
Firebase automatically restricts access after 30 days in test mode. Alerts will stop working. To fix it: go to Firebase Console → Realtime Database → Rules → change the expiry date or re-select test mode. Takes 30 seconds and does not affect any existing data.
Do family members need a Firebase account?
+
No. Only the person setting up Firebase needs a Google account. All other family members receive the Firebase URL automatically from the admin when they open the app. They just open Family Care and they are connected.
Alerts stopped working after some time — why?
+
Most likely the Firebase Test mode rules expired (after 30 days). Go to console.firebase.google.com → your project → Realtime Database → Rules → update the expiry date to a future date or set rules to allow read/write. Another reason could be the app's Firebase URL changed — check Admin Panel → Family Alert to confirm the URL is still saved.
I joined the family but I don't appear in the head's list
+
After you tap "Join Family" you will see a Confirmation Code on screen. Copy this code and send it to your Family Head (via WhatsApp or message). The head then pastes it in Family Alert → Family tab → "Confirm a Joined Member". Your name will then appear in their list. The code now stays on screen until you navigate away.
Does Family Alert work when the app is closed?
+
If the browser tab is closed, real-time alerts cannot ring. However, when the recipient opens Family Care again, any missed alerts are immediately fetched and shown. For real-time ring + vibration, the app needs to be open in a browser tab (PWA installed on home screen helps with this).

Ready? Open Family Alert now.

Follow the steps above, set up Firebase in 5 minutes, and keep your family connected.

🫂 Back to Family Alert →