Self-hosted push notifications for Matrix apps with Sygnal

Sygnal is the reference push gateway that delivers Matrix notifications to Apple and Google devices. Learn how to run it for your own branded apps, with per-app credentials and the project's move to Element.

On this page

When a self-hosted Sygnal push gateway is required for your Matrix apps

An organization that publishes its own branded Matrix mobile app needs push notifications that work on iOS and Android when the app is closed. Sygnal is the reference push gateway for Matrix, and it is the component that hands those notifications to Apple Push Notification Service (APNs) and Firebase Cloud Messaging (FCM). Your homeserver does not talk to Apple or Google directly. It sends push requests to the gateway, and the gateway delivers them through the platform services under credentials you control. If your organization only uses the stock Element apps from the public app stores, the vendor's existing push path may already cover you, so the decision to run Sygnal yourself follows from publishing your own app identity.

Push is a separate path from the homeserver. The homeserver stores messages and sends them to the registered push endpoint, and the gateway does the platform-specific work. Each app you publish needs its own registered identity, which Sygnal records as an entry under the apps section of its config, keyed by app_id. That entry holds the APNs or FCM credentials for that one app. Two apps with different bundle identifiers or Firebase projects cannot share one entry, so a planned set of branded apps means a planned set of entries. Confirm with your mobile team which APNs authentication method (certificate or token) and which FCM API version each app will use before you request credentials, because Sygnal supports both APNs options and the FCM legacy API and API v1.

Before you commit to this design, confirm three things with your mobile and platform leads: who owns the Apple and Firebase accounts that issue the credentials, how those secrets will be stored and rotated, and where the gateway will run so that it can reach APNs and FCM from your network. Also check the project's current home. The matrix-org/sygnal repository was archived on July 21, 2025, and the project is now maintained by Element at element-hq/sygnal, so use that source when you plan upgrades. The Sygnal repository documents the config format and supported push types for the version you intend to run.

Sygnal configuration choices and when each fits

This table compares the credential and layout choices you make when running Sygnal for your own branded apps: APNs auth methods, FCM API versions, and how many gateway instances to run. Read each row against your app estate, then confirm the provider-side details with Apple and Google before you commit. The main takeaway is that the APNs and FCM choices are made per app, so the gateway layout should follow how many apps and bundle identifiers you actually ship.

ChoiceWhat it involvesWhen it fitsConfirm before deciding
APNs certificate authA per-app certificate from your Apple developer account, configured under the app's entry in Sygnal's apps sectionFew apps with stable bundle identifiers, and teams already comfortable renewing certificates on a scheduleCertificate expiry dates, renewal owner, and whether your Apple account setup supports the certificate type you need
APNs token authA signing key from your Apple developer account used to sign provider tokens, configured per appSeveral apps or environments where you want to manage one signing key rather than many certificatesKey ID and team ID for each app, whether the key covers all your bundle identifiers, and who holds the key after staff change
FCM legacy APIServer key based sending through the older Firebase Cloud Messaging interfaceOnly where an existing app already depends on it and migration is not yet scheduledCurrent Google deprecation status for the legacy interface and whether your Firebase project still accepts these calls
FCM API v1Service account credentials per Firebase project, used with OAuth-based accessNew branded apps and any app that needs to remain supported over timeFirebase project per app or shared, service account scope, key rotation process, and project ownership
One shared gatewayA single Sygnal instance holding entries for every app under the apps section, keyed by app_idSmall to medium estates with a common operations team and similar credential handlingWho can read all credentials, how config changes are reviewed, and how a fault in one app's credentials affects the others
Per-app gateway entries on one hostEach app keeps its own credentials and config block, reviewed separately within one deploymentEstates where brands have separate owners but a shared platform team runs the serviceNaming of app_id values, a change process per block, and a rule for retiring an app's entry
Separate gateway per brand or regionIndependent Sygnal deployments, each with its own credentials and network pathStrong separation requirements between brands, or regional data handling rulesExtra hosting and monitoring effort, whether each instance must be reachable from your homeserver, and how upgrades are coordinated

How the apps section and per-app credentials work

Sygnal routes each push request by the app identifier the client sends, so every published app needs its own entry with its own platform credentials. The cards below cover how that entry is keyed, which credentials it holds, and where mismatches between the app build and the gateway config cause silent failures.

One entry per app_id

Sygnal reads its apps section keyed by app_id, and each published mobile app needs its own entry. The gateway matches the identifier a client sends in its push registration against these keys. Treat the app_id as part of your release record: list every branded app, its bundle or package identifier, and the matching config key before you ship any build.

Sygnal repository

Separate APNs credentials per app

Each iOS app entry needs Apple Push Notification service credentials for that app's bundle identifier, either a certificate or a token-based key. Do not copy one app's credentials into another entry, even when both apps belong to the same company. Confirm with your Apple developer account owner which key or certificate belongs to which bundle before you add it to the config.

Separate FCM credentials per app

Each Android app entry needs Firebase Cloud Messaging credentials tied to its Firebase project and package name. Keep service account material out of shared config files and store it with your normal secret handling. Confirm which FCM API version each entry uses, since Sygnal supports both the legacy API and API v1.

Risks of reusing credentials

When two apps share one credential set, a push for one app can be delivered under the other app's identity, and revoking one app's key can silently stop the other app's notifications. Shared credentials also make incident response harder, because you cannot rotate one app's keys without touching the other. Illustrative example: a staging build and a production build pointing at one entry will both break the day that entry's key is rotated.

Matching app_id between build and gateway

The app_id in the client build must match the config key character for character. A mismatch does not usually produce an obvious error in the app; registrations may succeed while notifications never arrive. Check both sides during release testing by sending a test notification from each built app to a device and confirming the gateway logs a delivery attempt for that identifier.

Keeping entries in step with releases

Each new branded app, bundle rename or environment split changes the apps section, so the config becomes part of your release process. Version the file in your infrastructure repository, review changes like code, and remove entries for retired apps. Ask your team which identifiers exist in production today before any gateway change goes live.

Setting up Sygnal for your first branded app

This sequence takes one branded Matrix app from platform credentials to a confirmed push notification on a test device, with a check at each stage so problems surface before the app ships.

  1. Obtain platform credentials for the app

    The app owner, usually a mobile lead with access to the Apple Developer account and the Firebase project, creates the push credentials for the app's bundle identifier. For Apple, this means an APNs authentication key (token auth) or a certificate, depending on what your team supports. For Google, it means a Firebase project with a service account for FCM API v1, or the legacy credentials if you still rely on them. Store the key files in your secrets system with restricted access, not in the repository. Check: you can list the APNs key ID and team ID, or the FCM service account email, and the files are readable only by the Sygnal service account on the host.

  2. Add the app entry under apps

    Edit Sygnal's configuration and add one entry under the apps section for each branded app, keyed by its app_id. Each entry carries only the credentials for that app, so a compromised key affects one app rather than every app on the gateway. Use the exact app_id string that the mobile build will register with, because a mismatch is the most common reason notifications fail silently. Check: start Sygnal with the new configuration and confirm the process loads without configuration errors, then confirm the gateway answers its health endpoint on the host where you expect it.

  3. Point the homeserver at the gateway

    On the Synapse side, configure the homeserver to send push requests to your Sygnal instance. The gateway URL must be reachable from the homeserver process, and the Sygnal endpoint must be served over HTTPS with a certificate your homeserver trusts. Restart Synapse after the change and review its logs for any warnings about the push gateway. Confirm the exact configuration keys against the current Synapse configuration manual for your release, since key names and defaults can change between versions. Check: Synapse starts cleanly and its log shows no failed connection attempts to the gateway during startup.

  4. Build the app with the matching identifier

    The mobile build must use the same bundle identifier for iOS and the same application ID for Android as the app_id registered in Sygnal, and it must request push permission and register its token through the Matrix client SDK your team uses. Confirm with the mobile team that the build pipeline signs the app with the push-enabled provisioning profile or Firebase configuration file for that identifier. Check: install a signed build on a test iPhone and an Android device, log in to your homeserver, and confirm the app shows a registered push token in its settings or logs.

  5. Send a test notification to a device

    Send a message from a second account on the homeserver to a room that the test user is a member of, with the test device set to background or closed. This confirms the full path from Synapse, through Sygnal, to APNs or FCM, and back to the device. Repeat the test for each platform the app supports, because APNs and FCM are configured separately. Check: the notification appears on the device with the expected title and content, and the Sygnal and Synapse logs show a successful delivery for that request. If the device receives nothing, check the app_id match first, then the platform credentials.

  6. Record the configuration and confirm the rollout path

    Document the app_id, the platform credential owners, the Sygnal host, and the Synapse configuration change in your runbook, and record where each secret is stored and who can rotate it. Confirm with the mobile and platform teams how credentials rotate before each store release, since an expired or revoked key stops delivery for that app. Check: a second engineer can follow the runbook to locate the credentials, identify the app entry, and repeat the test notification without asking the original author.

What the move from matrix-org to Element changes for your deployment

The matrix-org/sygnal repository was archived on July 21, 2025, and the project is now maintained by Element at element-hq/sygnal. If your deployment still points at the old repository, your release tracking is pointing at a project that no longer accepts changes. Update your bookmarks, your container image sources, your dependency pins and any internal runbook that names the old location. Check the new repository's releases page before choosing a version, and confirm with your platform team which source your build pipeline pulls from so that a future update does not silently come from a stale copy.

Moving the source does not change the license. Sygnal remains under Apache-2.0, so the terms that governed your use before the move still apply, and you can keep your branded app configuration and any local patches under the same license obligations. Still, confirm the license file in the version you deploy and record it in your third-party software inventory, because license review is often tied to the repository a package came from. Compliance reviewers will ask where the code came from and whether the source is still maintained.

Pinning matters more after an archive. Record the exact Sygnal version, the image digest or commit hash, and the date you last reviewed it. Then decide who watches the element-hq/sygnal repository for security fixes and how quickly a patch must be applied to your push gateway, since it holds APNs and FCM credentials for every app you publish. Report defects and questions through the issue tracker of the current repository, and do not expect responses in the archived one. Ask your push gateway's support contact or your implementation partner to confirm the upgrade path between the versions you run.

Securing push credentials and gateway exposure

Sygnal holds the keys that let it send notifications to Apple and Google on behalf of your apps, so those keys are as sensitive as the apps' signing material. The cards below cover where credentials live, who can read them, how far the gateway is exposed, and how to rotate keys without breaking delivery.

Protect APNs and FCM credentials

Each app entry in Sygnal's config carries its own APNs certificate or token key, or its own FCM service credential. Anyone holding one can send pushes as your app to every device registered with it. Store these outside the config file, for example in a secrets manager or a root-owned file injected at start, and confirm with the Sygnal repository which credential types each platform accepts for your app.

Sygnal repository

Restrict read access to the config

The config file names every app_id and points to its credentials, so the file itself is a target. Limit read permission to the Sygnal service account, keep the file out of version control and container images, and check that backups and configuration management exports follow the same rule. Log access to the directory that holds the key files where your platform supports it.

Limit gateway network exposure

Homeservers reach Sygnal over HTTP to deliver push requests, and Sygnal is the only component that should talk to Apple and Google with your keys. Place it on an internal network reachable only from your homeserver workers, and do not publish it through a public reverse proxy route. Confirm the listener address and any proxy settings in the current Sygnal documentation before you deploy.

Separate apps and environments

A single gateway can serve several apps, so a leaked credential for one app should not expose the others. Keep production and test app entries apart, use distinct credentials per app and per environment, and avoid pointing test builds at production keys. Illustrative case: a staging app key copied into a shared file would let staging traffic and any misuse reach production devices.

Rotate keys without a delivery gap

Apple and Google credentials expire or get revoked, and a rotation that removes the old key before the new one is live stops notifications for every device on that app. Add the new credential to the config, reload Sygnal, send a test push to a device, then retire the old key. Record the rotation date, the owner and the revocation step so the process repeats on schedule.

Monitor and respond to misuse

Unexpected push volume, rejected requests from Apple or Google, or a new sender IP can indicate a leaked key or an open listener. Forward Sygnal logs to your central logging stack, alert on sudden changes in request rates and error codes, and keep a written runbook that says who revokes a key at the vendor and how the app is re-issued. Confirm the revocation steps with Apple and Google for your account type.

Questions teams ask before running Sygnal themselves

Can an internal team run Sygnal without outside help?

Yes, if the team already operates Synapse and has someone who can manage Apple and Google developer accounts. Sygnal is Apache-2.0 licensed and is a small service, so the hard part is rarely the software itself. The work is the credentials: each app you publish needs its own entry under the apps section of the config, keyed by app_id, with that app's APNs or FCM credentials. Teams that have not shipped a mobile app through both stores before usually spend the most time on the signing and key steps, not on running the gateway. Ask whether your people have done this for a store release recently, and who owns the credential rotation afterward.

What drives the cost and effort of a Sygnal deployment?

The main drivers are the number of apps, the number of push platforms, and how many environments you need. Each branded app adds its own APNs or FCM configuration, its own testing, and its own credential handling. Whether you use APNs certificate or token authentication, and whether you use FCM API v1 or the legacy API, changes the setup steps. Hosting, monitoring and the upgrade path add recurring work. Ask any partner for a quote that lists each app and platform as a line item, separates one-time setup from ongoing operations, and states who holds the Apple and Google accounts.

What do we need to provide before work starts?

You need administrator access to your Apple Developer account and your Google Play and Firebase projects, because the credentials for each app come from those accounts. You also need the bundle or application identifier for every app, and the app's push capability enabled in each store. Access to the build pipeline matters too, so the team can confirm the correct identifier reaches each build. Ask your partner to list every account, role and identifier they need, and to confirm how credentials will be shared and stored. Do not send private keys over email or chat.

How long does it take to confirm a working test push?

The time depends on how quickly the credentials and identifiers are available, not on Sygnal itself. Once an app's APNs or FCM details are in the config and Sygnal is reachable from your Synapse homeserver, a test notification can be sent to a test device. The slow steps are usually store account access, capability approvals and matching identifiers between the app and the config. Ask for a written plan that names the test device, the test account and the exact point at which a push counts as confirmed, and ask what happens if a platform rejects a credential.

Do we need Sygnal if we only use one app?

You need a push gateway whenever your mobile apps must receive notifications through Apple Push Notification Service or Firebase Cloud Messaging. A single app still needs its own entry in the Sygnal config with its own credentials. Running one app reduces the number of entries but not the account work. Ask whether your apps will be published under your own identifiers, because that determines which credentials you must create. Also confirm whether you plan to ship additional apps later, since adding one later repeats the credential steps.

Who maintains Sygnal now, and does that affect our plan?

Sygnal is now maintained by Element at element-hq/sygnal. The matrix-org/sygnal repository was archived on July 21, 2025, so any deployment guide or fork that points to the old location should be checked against the current repository. Ask your team to pin a release, track the upstream repository for changes, and confirm the license terms with their legal team before they publish a branded app. Planning the upgrade path before go-live avoids running an unmaintained copy.

Who is responsible for the push gateway once it is live?

Your organization owns the gateway, the credentials and the apps, whether an internal team or a partner runs the setup. Ongoing work includes rotating credentials, watching for failed deliveries, updating Sygnal and checking that store requirements still match your configuration. Ask a partner to state in writing which of these tasks they perform after handover, which they train you to perform, and how support requests are handled. A retainer can cover recurring operations if the internal team does not have capacity.

What should a quote for a Sygnal engagement include?

A useful quote lists the apps and platforms in scope, the Sygnal version and hosting location, the accounts and credentials involved, the test plan, and the handover items. It should separate one-time setup from recurring support and state what the client must provide. Ask for the assumptions behind each line, the change process if you add an app, and the acceptance test that proves a push works. DeployOpen plans engagements as fixed scope, with deliverables and timelines agreed in writing before work starts.

How DeployOpen scopes and supports Sygnal push for your apps

DeployOpen plans, builds, documents and supports a self-hosted Sygnal push gateway inside your own infrastructure, one app entry at a time. Engagements are fixed-scope, with the APNs and FCM credentials, app identifiers and handover agreed in writing before work starts.

How we scope

  • Inventory every branded app, its bundle or application identifier, and the Matrix homeserver it will register against.
  • Confirm which Apple and Google push credentials each app needs and who owns the Apple and Firebase accounts.
  • Agree in writing whether the scope covers the gateway only, the mobile app push configuration, or both, with timelines and deliverables.

How we build

  • Deploy Sygnal in your infrastructure and create one entry under the apps section for each app_id, with its own credentials.
  • Test notifications end to end on real devices for each platform, covering foreground, background and encrypted message payloads.
  • Keep the gateway on a version that Element maintains at element-hq/sygnal, since the original matrix-org repository was archived.

How we hand over

  • Document the config layout, credential locations, rotation steps and the expected behavior of each app_id entry.
  • Record where each APNs key or FCM credential is stored, who can read it, and how it is replaced without downtime.
  • Walk your platform and mobile teams through the runbook and the test script used to verify each release.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer, covering Sygnal releases and new app entries.
  • Retesting is repeated after credential rotation, Apple or Google platform changes, and each new branded app release.
  • Support is scoped in writing, so your team knows which issues DeployOpen handles and which stay with your mobile team.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.