Why use Iterable
- Push delivery: Send Iterable campaigns to devices through the native push channel.
- Segmentation and targeting: Align push with Iterable audiences and campaign logic.
- Flexible initialization: Supply
apiKeyin App Studio for automatic setup, or callinitializeat runtime when you need dynamic configuration. - User identification: Tie devices to Iterable profiles with
setEmailorsetUserId, then refresh the push token withregisterPushas documented by Iterable.
Prerequisites
- A Median app with the JavaScript Bridge enabled
- Access to Native Plugins → Iterable in App Studio
- An Iterable API key and (if applicable) a data region such as
EU -
google-services.jsonuploaded to your app (see Google Services) - Deep linking enabled in the app if notification URLs should open in-app
Integration guide
Plugin setup
Enable the plugin
- Navigate to Native Plugins: In App Studio, open Native Plugins and select Iterable.
- Enable Iterable: Turn the plugin on and fill in the settings below.
- Add
google-services.json: Iterable requiresgoogle-services.json. - Enable deep linking: Set up deep linking so notification links open in your app rather than the device browser.
Configuration options
If you leave API Key empty, call
median.iterable.initialize() from your web app with your API key and optional dataRegion before relying on other JavaScript Bridge methods.
JavaScript Bridge functions
Initialize
Manually initializes the Iterable SDK when you are not relying on automatic initialization from App Studio config.Check permission status
Returns whether the Iterable SDK has been initialized and, when initialized, echoes the activeapiKey and dataRegion.
Register push
Registers the current user for push notifications and refreshes the device token.Request permission
Prompts the user for push notification permission.Set email
Identifies the current user by email in Iterable. After a successful call, invokeregisterPush to generate a new token for that profile.
Set user ID
Identifies the current user by user ID. After a successful call, invokeregisterPush to generate a new token for that profile.
Testing checklist
Use this checklist to ensure Iterable is working correctly in your app: Basic functionality- The plugin is enabled in Native Plugins, with a valid API Key and the correct Data Region when applicable
-
median.iterable.isInitialized()reflects the expected state after App Studio config orinitialize() -
median.iterable.requestPermission()(or Automatic Registration) yields the expected permission outcome -
median.iterable.registerPush()completes withsuccess: trueafter permission is granted
- Push registration and receipt behave on Android test devices
- Push registration and receipt behave on iOS test devices
- Iterable test sends reach the device after
setEmail/setUserIdandregisterPush
- Failed
initializeorregisterPushpaths do not leave the app in a broken state (retry or messaging as needed) - Behavior is sane when permission is denied (no silent assumptions that push is enabled)
- Runtime
initializewithapiKey/dataRegionmatches your Iterable project - User switching (
setEmail/setUserIdchanges) is followed byregisterPushso tokens stay aligned
- Permission prompts appear at a sensible time relative to your onboarding
- Deep-linked notification opens land on the correct in-app destination
Troubleshooting
Why are Iterable JavaScript Bridge functions undefined or not working?
Confirm the JavaScript Bridge is enabled in App Studio, call JavaScript Bridge APIs after themedian_library_ready() event, and verify Iterable is enabled under Native Plugins.
Why is isInitialized false, or why does initialize keep failing?
Check that the API key and optional data region match your Iterable project. If you rely on runtime initialization, ensure median.iterable.initialize() runs before other Iterable calls and that network access is available.
Why aren’t test notifications reaching the device?
Ensure you have calledsetEmail or setUserId for the test profile, then registerPush, and that the user has granted notification permission. Confirm the device is registered in Iterable for that identifier.
Why do notification links open in the browser instead of the app?
Enable and configure Deep linking for your Median app so URLs from Iterable notifications route in-app. Verify URL patterns match your app’s deep link configuration.Why isn’t my EU data region working correctly?
If your Iterable workspace uses the EU stack, setdataRegion (for example EU) consistently in App Studio config or in initialize() so the SDK talks to the correct endpoints.
Still having issues?For issues related to Iterable’s own configuration, permissions, or platform-specific behavior outside of Median, refer to the Iterable integration documentation.