Skip to content

Push Server

Without the Push Server, every banking or enterprise app integrates Firebase Cloud Messaging (FCM) and the Apple Push Notification service (APNs) on its own: provider credentials are spread across backends, each team builds its own device registry, retries and delivery tracking, and sensitive notification text (amounts, beneficiaries, one-time approvals) travels in clear text through Google’s and Apple’s infrastructure and appears on lock screens. Operators cannot answer which devices are active, whether a message was accepted by the provider, or whether the app ever retrieved it.

The Push Server solves this with one tenant-aware service that owns device registration, provider credentials and delivery for many customers and apps. Backends send one API request; the server resolves the devices, encrypts private content per device, and sends only a silent wake-up with a push ID through FCM or APNs. The app retrieves and decrypts the content directly from the Push Server, so private text and business data never pass through Apple or Google. If the app does not retrieve the message in time, a neutral public fallback notification is shown. Device answers are forwarded to the customer backend as authenticated callbacks, and delivery diagnostics and reporting show what happened to every message.

The m8ty Push Server is a Spring Boot (Kotlin) service that combines HTTP APIs, RabbitMQ-based asynchronous delivery, FCM and APNs adapters, a SQL database and scheduled maintenance in one process. Devices register with platform attestation (Play Integrity, Apple App Attest) and sign their requests with a device key; backends authenticate with OAuth 2.0 bearer tokens.

  • Multi-tenant, multi-app — one tenant per customer with independent apps (Android and/or iOS) below it; identities, provider credentials, sender policies, callbacks and JWT trust are configured per customer and app and never inherited.
  • Attested device registration — PKCE-bound nonce, device key exchange (JOSE), Play Integrity or Apple App Attest verification, and RFC 9421 HTTP message signatures for all device requests.
  • Provider delivery — Android through FCM (Firebase Admin SDK), iOS through direct APNs (token-based authentication) or through FCM, selectable per customer or app.
  • Private notifications — encrypted per-device content (JWE with a nested server-signed JWT), silent-first delivery and a durable, timed public fallback.
  • Rich presentation and localization — subtitles, images, sounds, badges, grouping, Android channels, iOS categories and interruption levels, up to four actions, and up to 50 translations resolved per device language.
  • Message classes — INSTANT (consumed on first read, short lifetime) and ALERT (repeatable retrieval, up to 30 days).
  • Callbacks — device answers are verified and forwarded to the customer backend with BASIC, KEY, ACCESS_TOKEN or OAuth client-credentials (SERVICE_TOKEN) authentication.
  • Reliability — transactional outbox, bounded quorum queues, delayed retries, persistent recipient claims and customer-fair scheduling.
  • Observability — per-device delivery diagnostics timeline, structured logs without content, a customer reporting API, monthly active-device reports and an optional operator dashboard.
Topic Description
Architecture Modules, tenants, persistence, queues, provider adapters, encryption, security model and core flows
Integration and API APIs, authentication, sending messages, private notifications, callbacks, diagnostics and Dart clients
APNs and FCM Setup Credentials from Apple and Firebase and their per-tenant configuration
Deployment and Operations Local development, configuration, Kubernetes deployment, operations and known limitations