Back to library
About this plugin
Send push notifications directly from Firebase Cloud Messaging with no third-party push vendor in between. Registration tokens, topic subscriptions, notification taps, and data-only messages are all exposed to your web content through the Median JavaScript bridge.

Key features

1
Direct Firebase Cloud Messaging delivery:
Register your app straight with FCM and read the device token from JavaScript. No third-party push vendor between your app and Google's delivery infrastructure.
2
Full notification lifecycle in JavaScript:
Listen for token refresh, foreground arrival, notification taps, and data-only messages. Taps carrying a targetUrl navigate the app to that page, including on a cold start from a killed app.
3
Topics and Android notification channels:
Subscribe and unsubscribe devices from FCM topics, and create, delete, and list Android notification channels at runtime to give users granular control over what they receive.
4
Consent-friendly delayed registration:
Enable Automatic Registration to ensure no token is minted until your page calls register(), so you can gate push registration behind your own consent flow.