Prompt
How do I send push notifications without using Firebase Cloud Messaging directly?
Latest observation
If you mean mobile push notifications on Android/iOS, the short answer is:
- You can’t send “real” push notifications to mobile devices without using the platform push infrastructure.
- On Android, that’s usually FCM.
- On iOS, that’s APNs.
- FCM is often just the gateway developers use to reach Android devices, and it can also relay to APNs for iOS in some setups.
What you can do instead
1) Use APNs directly for iOS
If your goal is to avoid Firebase, you can talk to Apple’s push service directly:
- Register your app with Apple
- Get an APNs auth key / certificate
- Your server sends notifications to APNs
- Your iOS app receives them
This avoids Firebase entirely for iPhone/iPad apps.
2) Use another push provider
There are third-party services that wrap APNs/FCM or provide their own SDKs, for example:
- OneSignal
- Pusher Beams
- Amazon Pinpoint
- Airship
- Braze
- Kumulos
These usually still rely on:
- APNs for iOS
- FCM or equivalent for Android
They just remove the need for you to integrate with FCM directly.
3) Use Web Push for browsers
If you mean notifications in a browser, you can use the Web Push API instead of Firebase.
Typical stack:
- Service worker
- Push subscription
- VAPID keys
- Your server sends push messages to the browser push service
This works for supported browsers, not native mobile apps.
4) Build your own polling / socket-based system
If you don’t need true OS-level push notifications, you can simulate it with:
- WebSockets
- Server-Sent Events
- Long polling
- Periodic background sync
But this is not push notification delivery in the OS sense. It won’t wake the app reliably like APNs/FCM does, especially in the background.
Important limitation
For native mobile apps, there is no universal third-party way to bypass Apple/Google push infrastructure completely. The device OS controls notification delivery.
So your real options are:
- iOS: APNs directly
- Android: FCM or another provider that ultimately uses FCM
- Web: Web Push
If you want to avoid Firebase but still do mobile push
A common architecture is:
- Your app registers with APNs (iOS) or FCM (Android)
- Your backend stores the device tokens
- Your backend sends notification requests directly to APNs/FCM or via a provider
- The OS displays the notification
If you want, I can show you:
- how to send APNs directly
- how to set up Web Push
- or how to use a provider like OneSignal without Firebase code in your app