mirror of
https://github.com/devkitshq/notifkit.git
synced 2026-10-19 18:24:52 +02:00
- Upgrade firebase-admin from ^12.0.0 to ^14.0.0 in provider-fcm - Refresh package-lock.json resolving dependency security advisories - Include src in provider-fcm published files
@notifkit/provider-fcm
Firebase Cloud Messaging push transport for notifkit. Delivers to FCM registration tokens and reports invalid ones back so notifkit can deactivate them.
npm install @notifkit/provider-fcm
import { FcmTransport } from "@notifkit/provider-fcm";
registry.register(
"push",
new FcmTransport({
serviceAccountJson: process.env.FCM_SERVICE_ACCOUNT_JSON!,
}),
);
Requires notifkit as a peer dependency and a Firebase service account.
Documentation: notifkit.dev/docs. MIT licensed.