AEM and Firebase: cloud messaging for push notifications

Adobe Experience Manager and Firebase solve complementary parts of the push notification problem. AEM manages campaign content, approvals, assets and targeting rules, while Firebase Cloud Messaging (FCM) transports messages to mobile devices running Android or iOS. Together, they can give Australian organisations a scalable way to deliver timely updates from content-managed applications.

The integration works best when AEM remains the content and orchestration layer, and a dedicated messaging service handles device tokens, FCM authentication and delivery state. This separation protects credentials, supports retry logic and allows teams to evolve their notification architecture without coupling every campaign to a single cloud function.

From device registration to message delivery

The mobile app registers with Firebase during installation and receives a device registration token. On iOS, Firebase also manages the underlying Apple Push Notification service token. These identifiers are not permanent, so the app must refresh its token and notify the profile service whenever Firebase reports a change.

AEM can reference that device record when an author selects a notification campaign. The backend then validates the audience, applies consent and preference rules, and sends a message through the FCM HTTP v1 API. Campaign identifiers and analytics metadata travel alongside the notification so that delivery and engagement can be reconciled later.

Push payloads should contain only what the app needs to route and display the message. A notification message can include a title and short body, while a data payload can carry a deep link such as an order detail or event page. Sensitive customer information should never be placed in either payload because intermediary systems may inspect or log it.

Model notification content in AEM

Notification content should be structured rather than embedded in an email template or hard-coded inside the app. Authors need fields for the headline, body, call-to-action label, destination, priority, expiry and display rules. AEM content fragments provide a practical home for these values when they need validation, references and reuse across channels.

Teams comparing delivery models can use a content fragment comparison to decide whether campaign information belongs in structured content or should be expressed as part of a broader digital experience. Notification-specific fields should remain explicit, even when the same campaign also appears on a website or in an email.

The content model should support localised variants without allowing one region’s offer to leak into another campaign. Australian English can be the default, with separate content fragments approved for particular audiences where terminology or regulatory wording differs. Previewing the rendered notification in AEM helps authors check message length, linked assets and destination parameters before publication.

Build the backend messaging path

A reliable architecture places the FCM integration behind a small backend service rather than calling Firebase directly from a browser or public AEM endpoint. The service can be invoked by an AEM workflow, scheduled job or event consumer. It resolves the target audience, builds the payload, signs the request and records the result of each delivery attempt.

Open-source examples and component ideas published through Made in Philly can help developers compare integration patterns before building production code. The essential building blocks remain consistent: a device-profile store, an audience selector, a notification template renderer, an FCM client and a delivery ledger.

Retries must avoid duplicating messages. The service should use a campaign and recipient identifier as an idempotency key, store the FCM message identifier, and treat expired or invalid device tokens as signals to update the profile. A dead-letter queue can hold failures that require investigation, while rate limiting protects both the backend and the messaging quota.

Protect consent credentials and user trust

FCM service-account credentials should exist only in the messaging service’s secure runtime. They should not be stored in AEM content, returned by an API or committed to a source repository. The same principle applies to Apple authentication keys: use a secrets manager, restrict access to the delivery worker and establish a rotation schedule.

The Australian Privacy Act 1988 and the Spam Act 2003 shape how customer data and commercial electronic messages are handled. A notification programme should record the purpose of consent, provide a straightforward way to change preferences and stop marketing messages. Regulatory wording may need to appear in the message body or linked terms, but it should not obscure the main call to action.

Preference controls should be understandable in the app and enforceable by the backend. A customer who opts out of promotional messages may still receive essential service alerts for security, transactions or operational failures. Modelling those categories separately reduces accidental unsubscribes and gives compliance and product teams a shared definition of each message type.

Operate reliably across Australian conditions

Scheduling campaigns in UTC avoids a common source of delivery errors. Australia spans several time zones, and daylight saving changes in New South Wales, Victoria, South Australia and Tasmania can shift local times without changing the stored timestamp. Store event times in UTC, convert them for reporting and let the campaign rule determine when a notification is eligible for delivery.

A message intended for 8:00 a.m. in Sydney may arrive at an inconvenient hour in Perth if the server applies one universal local time. Timezone-aware scheduling also matters for businesses operating between Sydney, Melbourne, Brisbane and Adelaide, where teams often coordinate campaigns from different states. Recipient preferences should override a default send window when customers have selected quiet hours.

Local development should reproduce the same token handling, payload contracts and failure states as production. The conference’s AEM Docker guidance provides a practical basis for containerising AEM and supporting services. Firebase emulators can also test registration and delivery behaviour without repeatedly using production quotas.

Measure outcomes and launch a focused pilot

FCM delivery reports show whether the messaging service accepted a request, but they do not prove that a customer saw or acted on it. Application analytics should record notification opens, deep-link visits and downstream conversions using a shared campaign identifier. Deduplicate these events so that a foreground message and its background delivery do not inflate engagement totals.

A focused Australian pilot can test the complete path with an opted-in group drawn from different cities, devices and operating systems. Include users on intermittent mobile connections, because a successful request from FCM does not guarantee immediate display. Check notification behaviour when the app is closed, backgrounded or restored after a device restart, and ensure repeated opens return the customer to the correct destination.

Start with one consented AEM campaign and one clearly defined business outcome. Trace it from content approval through FCM delivery to the app action, retain the logs, and fix broken preference, token or attribution paths before expanding the audience. Ship that scoped pilot to a small Australian cohort, measure delivery and engagement, then scale the proven notification journey to the wider customer base.