Rpush sends push notifications from Ruby applications to Apple, Firebase, Amazon, Windows, Pushy, and Web Push endpoints. It stores apps and notifications in ActiveRecord or Redis and can run as a dedicated daemon.
Overview
Rpush is a Ruby service for delivering push notifications to many vendor APIs from one codebase. It supports Apple Push Notification Service (including Safari and certificate or token authentication), Firebase Cloud Messaging, Amazon Device Messaging, legacy Windows Phone and Windows Notification Service, Pushy, and the Web Push protocol with VAPID keys.
Applications and pending notifications are persisted with ActiveRecord or Redis. You configure per-platform apps with credentials such as APNs certificates or p8 keys, FCM project IDs and service-account JSON, or Web Push key pairs stored on the application record. Notifications are created through a Ruby API and delivered by workers that can scale with threading or multiple processes.
The service is designed to run continuously: it can operate as a background daemon, a foreground process, a one-shot command-line delivery, a scheduled job, or embedded inside an existing Ruby process such as a Rails app. Hooks via a reflection API allow instrumentation and error handling, and integrations with Sentry and StatsD are documented.
Rpush loads new app definitions without a full restart when signaled, and it is commonly added to a Gemfile and initialized alongside Rails or other Ruby projects that need reliable outbound mobile and browser push.
Key features
- Apple, FCM, ADM, and Windows push transports
- Web Push with VAPID key storage
- ActiveRecord or Redis notification storage
- Daemon, CLI, embedded, and job-queue modes
- Horizontal and vertical scaling options
- Reflection API for delivery hooks
- Rails integration and hot app reload
- Safari Push and silent failure handling
Use cases
- Mobile app push from a Rails backend
- Multi-platform notification gateway in Ruby
- Desktop browser alerts via Web Push
- High-volume queued notification delivery
- Safari website push campaigns