finds.dev← search

// the find

ToothlessGear/node-gcm

★ 1,299 · JavaScript · NOASSERTION · updated Jan 2026

A NodeJS wrapper library port to send data to Android devices via Google Cloud Messaging

A Node.js wrapper for sending push notifications to mobile devices via Firebase Cloud Messaging (formerly Google Cloud Messaging). It wraps the legacy FCM HTTP API with retry logic and a cleaner interface than raw HTTP calls. The README itself tells you to use something else.

The retry-with-backoff logic in sender.js saves you from writing your own exponential backoff against FCM's flaky endpoints. Token-result index alignment (response.results[i] matches registrationTokens[i]) makes cleaning up unregistered tokens straightforward. Supports topics, conditions, and device groups in addition to direct token sends. The debug mode via DEBUG=node-gcm is a small but genuinely useful touch for tracing what hits the wire.

Dead on arrival: the library wraps the Legacy FCM API which was shut down June 21, 2024 — it does not work. The README says so in the first paragraph. No support for FCM HTTP v1 API (OAuth 2.0 bearer tokens, per-platform message customization) — the architecture would need to be rewritten, not patched. No TypeScript types. The 'version 2.0.0 in alpha' mentioned in the README references a PR from what is clearly several years ago and never shipped.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →