Prompt
I'm building a cross-platform app and need one push API for iOS, Android, and web
Latest observation
Oct 14, 2026
OpenAI APIWeb search: off
Use Firebase Cloud Messaging (FCM) as the single push API.
Why FCM
- iOS: works through APNs behind the scenes
- Android: native support
- Web: supports Web Push via service workers
- One backend API to send messages to all three platforms
Typical setup
- Create a Firebase project
- Register:
- iOS app
- Android app
- Web app
- Add Firebase SDKs to each client
- Use the client SDK to get a device token
- Send pushes from your server using:
- Firebase Admin SDK, or
- FCM HTTP v1 API
Things to know
- For iOS, you still need an Apple Push Notification service (APNs) key/cert configured in Firebase
- For web, notifications require:
- HTTPS
- a service worker
- user permission
- You’ll likely want to target by:
- token
- topic
- condition
Recommended architecture
- Client app: gets FCM token and registers it with your backend
- Backend: stores tokens per user/device
- Push service: sends through FCM to all platforms
If you want, I can also give you:
- a minimal architecture diagram
- sample code for iOS/Android/web
- or a comparison with OneSignal / Expo / AWS SNS