Iframe Embed
If you are using a (currently) unsupported client framework, you can use our embedded script. This will generate the notification center inside an iframe
Replace the selectors for the bell icon and the unseen badge within your code. Let’s take a look at this example code:
Customizing the dropdown position
Optionally, the embedded init script receives a position object, you can use this to specify the left
and top
position of the notification center.
Customizing the theme
The notification center component can be customized by passing a theme
to the init script. Checkout all possible theme properties.
Customizing the UI language
The language of the UI can be customized by passing an i18n
component to the init script. More information on all possible properties.
Handle User Interaction
In order to handle certain events like the user clicking on the notification, or clicking on an action button inside a notification, you can listen for these events and handle them accordingly.
Enabling HMAC Encryption
In order to enable Hash-Based Message Authentication Codes, you need to visit the admin panel’s In-App settings page and enable HMAC encryption for your environment.
The next step would be to generate an HMAC encrypted subscriberId on your backend:
Then pass the created HMAC to your client side application forward it to the embed initialization script:
Example
Frequently Asked Questions
Was this page helpful?