@eloritzkovitz/server-essentials
    Preparing search index...
    • Sends a Firebase Cloud Messaging (FCM) notification using the HTTP v1 API.

      Requires the GOOGLE_APPLICATION_CREDENTIALS environment variable to be set to the path of a Firebase service account JSON file.

      Parameters

      • __namedParameters: {
            android?: any;
            data?: Record<string, string>;
            notification: { body: string; title: string };
            token: string;
            webpush?: any;
        }

      Returns Promise<void>

      If GOOGLE_APPLICATION_CREDENTIALS is not set or credentials are invalid.

      await sendFcmHttpV1({
      token: "recipient_token",
      notification: { title: "Hello", body: "World" },
      data: { key: "value" }
      });