mirror of
https://github.com/devkitshq/notifkit.git
synced 2026-10-19 18:24:52 +02:00
@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.