Why use Bloomreach?
- Push permission control: Request and check notification permission from JavaScript.
- Customer identity support: Identify and persist customer state across sessions.
- Customer sign-out support: Clear customer session state when needed.
- Deep linking readiness: Configure domains to route links into the app.
Prerequisites
- Access to Bloomreach plugin settings in Median App Studio (Native Plugins tab).
-
Bloomreach credentials from your Bloomreach Engagement dashboard:
apiKeyprojectTokenbaseURL
-
For Android push, plan Firebase Cloud Messaging (FCM) with
google-services.jsonand Bloomreach; see Android push notifications. -
For deep linking, plan domains for
hostsand host platform verification files; see Deep linking setup.
Implementation guide
Bloomreach Engagement setup
Bloomreach Engagement issues one set of SDK credentials per project: a project token, an API key (public key), and a base URL. Median uses these same three values to initialize the native iOS and Android SDKs on your behalf. A manual SDK integration or initialization is not required. Retrieve your credentials from the Bloomreach Engagement web app under Project Settings → Access management → API. For background on how these credentials map to SDK initialization, see the official Configuration for iOS SDK and Configuration for Android SDK references.App configuration
- In Median App Studio, open your Native Plugins tab.
- Find the Bloomreach plugin in your list of ‘Added plugins’ and activate it as shown below.
- Rebuild your app to apply the new configuration.

Bloomreach plugin activation
Plugin configuration options
After you activate the plugin, configure it with the following settings. A reference table and an example follow.Example configuration (JSON)

Bloomreach plugin example configuration
Android push notifications
Android devices receive Bloomreach Engagement push notifications through Firebase Cloud Messaging (FCM). Complete both of the following:google-services.json: In Median App Studio, open the Build & Deploy tab and upload your Firebase project’sgoogle-services.jsonfile so it’s embedded in the app binary.- Firebase Cloud Messaging integration in Bloomreach Engagement: In the Bloomreach Engagement web app, add a Firebase Cloud Messaging integration under Data & Assets → Integrations, then enable it under Project Settings → Channels → Push notifications.
Deep linking setup
Deep links open URLs inside your app instead of the device browser when domains are allowlisted and platform association files are valid and reachable over HTTPS.-
Plugin configuration: Add every domain you want to open in-app to the
hostsarray. Do not includehttps://orhttp://; the plugin applies URL schemes as needed. -
Hosted verification files: On each domain (and subdomain you use), serve the standard association files over HTTPS:
- Android:
/.well-known/assetlinks.json(format and examples: Deep linking). Example host file: https://median.dev/.well-known/assetlinks.json. - iOS:
/.well-known/apple-app-site-association(or/apple-app-site-association). Example: https://median.dev/.well-known/apple-app-site-association.
- Android:
hosts list and hosted verification files before testing push-triggered links.
JavaScript Bridge functions
All methods are available on themedian.bloomreach namespace and should be called after the Median JavaScript Bridge is fully initialized.
Request push notification permission
Prompt for the Push Notification permission, which displays a dialog for users to confirm permission. For Android, the dialog only displays on Android 13 and above. Android 12 and below will always be granted without user intervention. Provide a callback function or await the returned promise.Check push notification permission
Checks whether push permission is currently granted, without prompting the user.Identify customer
Identifies a customer by a hard identifier and value, so Bloomreach Engagement can associate device activity with a known profile. State persists untillogoutCustomer is called.
Optionally, include user properties:
Sign out a customer
Clears the current customer session, detaching subsequent tracking and push delivery from the previously identified profile.Usage examples
Prompt for permission only if not already granted
Identify a customer, then clear the session on sign-out
Testing checklist
Use this checklist to validate your Bloomreach integration before release: Basic functionality- Plugin is
activeandapiKey,projectToken, andbaseURLare all set correctly. -
promptNotificationdisplays the native permission dialog and returns a result. -
notificationEnabledaccurately reflects the device’s current permission state. -
identifyCustomeris called with a valididentifier/valuepair, and the profile appears in the Bloomreach Engagement customer list. -
logoutCustomerclears the session and stops further tracking for that profile.
- Android build includes
google-services.json. - Bloomreach Engagement’s Firebase Cloud Messaging integration is configured with a valid service account private key.
-
hostsincludes every intended deep-link domain, without a scheme. - Association files (
assetlinks.json,apple-app-site-association) are hosted and pass Median’s Deep Linking Validator. - Tapping a push notification or campaign link opens the correct screen in-app, not the browser.
Troubleshooting
Why do deep links open in the browser instead of the app?
This typically indicates incorrect deep linking configuration. Verify hosted association files and ensure all intended domains are listed inhosts (without https:// or http://).
Why aren’t Android push notifications being delivered?
Verifygoogle-services.json is embedded in the app and Bloomreach push configuration includes the FCM server key.
Which identifier should I use in identifyCustomer?
registered is a common default hard ID, but your project’s actual hard ID may differ. Check your project’s customer identification configuration in the Bloomreach Engagement web app to confirm which identifier to use.
Still having trouble?For issues related to Bloomreach’s own configuration, permissions, or platform-specific behavior outside Median, refer to Bloomreach’s integration documentation.