Key Takeaways
- NestJS sends Android-gateway notifications with a plain HTTPS/JSON (REST) client — not a Complete Nest SDK.
- Prefer queues (Bull/etc.) so HTTP handlers do not wait on the radio.
- Treat push/email/SMS as separate channels; SMS still needs a paired phone and operator airtime.
- Priced by devices and SMS send volume. You use your own phone and operator SMS credit. Free is 300 SMS lifetime; paid from $19/month.
- Isolate OTP SMS from marketing notifications on device pools.
- Confirm live fields in Developer Center.
Summary
NestJS apps often fan out notifications — email, push, and SMS. For an Android SIM gateway, SMS is REST from a Nest provider/queue worker to the control plane, then a paired phone. Hub: Android SMS Gateway API. Priced by devices and SMS send volume. You use your own phone and operator SMS credit.
A Nest “NotificationsModule” that treats SMS like an in-process event bus still owes a funded SIM and a phone that woke up.
Notifications via REST
Inject a thin SmsGatewayClient using Nest’s HTTP module. Read API keys from ConfigService/ENV. Persist message IDs; map DLR via webhooks. Live fields live in the SMS API documentation. Nest HTTP context: Nest HTTP module.
Channel table
| Channel | Nest pattern | SMS-specific risk |
|---|---|---|
| Provider API | — | |
| Push | FCM/APNs | — |
| SMS OTP | Queue + REST | Radio delay, airtime, OEM ceilings |
| SMS promo | Paced queue | Consent/STOP; must not starve OTP |
Implementation shape
- Notification service publishes domain events.
- SMS consumer calls gateway REST with idempotency for OTP.
- Webhook controller updates status — accept ≠ delivered.
- Cap concurrency to handset pace.
Failure modes
- Sync SMS in interceptors — timeouts under load.
- Shared device for OTP + blast notifications.
- Logging full OTP in Nest logger.
Cost
Free is 300 SMS lifetime; paid from $19/month. See pricing.
Checklist
- REST client only — no Complete Nest SDK claims.
- Queues on; OTP isolated; secrets in ENV.
- Canary + DLR path tested.
Next steps
Complete setup and keep notification fan-out honest about radio reality.
Related product pages
Jump to the live product docs for this topic—not another long-form article.
- SMS API documentationLive endpoint reference
- device and SMS volume pricingPlans and allowances
- Android SMS gateway product guideDefinition, product, and how to buy
- download the Android gateway appGet the APK





