Firebase Cloud Messaging (FCM) Integration
Unified push notifications for Android, iOS, and Web
Complete Firebase Cloud Messaging (FCM) integration — server-side token management, targeted push, topic subscriptions, rich notifications, web push, and analytics. For Android, iOS, and web browsers.
Overview
Firebase Cloud Messaging (FCM) is Google's free, unified push-notification service for Android, iOS, and web browsers. It replaces the older GCM and supports everything from transactional alerts ("Your order has shipped") to targeted marketing campaigns ("20% off this weekend, Kochi customers").
I integrate FCM on the server side (Laravel / PHP) using Firebase Admin SDK, manage device tokens across multiple user sessions, implement topic-based subscriptions for group messaging, and build rich notifications with images, buttons, and deep-linking into your app.
FCM integration process
- Firebase project setup + service account credentials
- Server-side integration with Firebase Admin SDK (PHP via google/cloud-firestore + google/auth)
- Device token registration — capture and store per user, per device
- Targeted push API — by user_id, device_token, or topic
- Topic management — users subscribe/unsubscribe to channels (e.g., "offers", "new-arrivals-kochi")
- Rich notification payloads — images, action buttons, custom data
- Web Push for browsers (service worker + VAPID keys)
- Analytics — opens, conversions, unsubscribes
Common FCM use cases
- Transactional alerts — order confirmed / shipped / delivered, password reset, payment received
- Marketing campaigns — flash sales, new product launches, personalised offers
- Chat notifications — new message in-app / website
- Re-engagement — inactive user nudges, cart abandonment
- Localised offers — geo-targeted by city (Kochi / Trivandrum / Kozhikode)
- Companion-app notifications — ERP modules, school parent app, clinic reminders
What's included
- Android + iOS + Web push (unified)
- Per-user + per-device + per-topic targeting
- Rich notifications (image, buttons, deep-links)
- Scheduled / campaign push
- Silent (data-only) push for background tasks
- Web Push (VAPID keys, service worker)
- Token refresh & invalidation handling
- Delivery analytics (opens, clicks, conversions)
- A/B testing
Tech stack
What you get on delivery
- Server-side send API
- Token registration endpoint
- Topic subscription management
- Admin UI to compose & send push
- Per-push analytics
- Web Push support (service worker)
- 30 days free bug fixes
Frequently asked questions about Firebase Cloud Messaging (FCM) Integration
How much does FCM integration cost?
Basic FCM integration (server-side send + token management): ₹15,000–₹25,000. Full admin UI with campaign composer, targeting, and analytics: ₹40,000–₹80,000. FCM itself is free (unlimited messages).
Is FCM really free and unlimited?
Yes — Firebase Cloud Messaging has no per-message charge, no quota. Google funds it to keep the Firebase ecosystem attractive. Your only cost is the integration work.
Can FCM send notifications to web browsers too?
Yes — FCM supports Web Push via a service worker and VAPID keys. Works on Chrome, Firefox, Edge, Safari (16+). iOS Safari added support in 2023.
How does targeting work?
Three ways: direct token (one device), user_id (all devices of one user), and topic (everyone subscribed to a channel like "offers-kochi"). I build all three into a unified admin API.
Do I need separate iOS setup?
iOS requires an Apple Push Notification Service (APNs) key or certificate uploaded to Firebase. I handle the iOS certificate generation and upload as part of the integration.
Ready to integrate Firebase / Google?
Free 30-minute discovery call. Fixed-price quote within 24 hours.