Skip to main content

Frontend shared concepts

All Notifizz frontend SDKs (React, Angular, Vanilla JS) share the same underlying widget and expose the same capabilities through framework-idiomatic APIs. This page covers the concepts that apply across all of them.

Widget lifecycle

Every frontend SDK follows the same lifecycle:
  1. Load — The SDK injects the Notifizz widget script into the page.
  2. Authenticate — The widget authenticates the user based on your authType configuration.
  3. Ready — The widget signals it is ready to display notifications. The isReady state becomes true.
  4. Active — The widget listens for real-time updates and keeps the notification list current.
  5. Destroy (optional) — The widget is removed from the DOM and all listeners are cleaned up.
All SDKs expose a way to listen for the ready event and state changes so your app can react accordingly.

Positioning

Control where the bell icon appears using the position option:

Styling

Fine-tune the placement of the bell and the notification center with style options:

Bell styles

Notification Center styles

These style options let you nudge the widget to align with your app’s layout without writing custom CSS.

State model

All SDKs expose the same NotifizzState object:

How to access state

Programmatic control

All SDKs let you open, close, and toggle the notification center programmatically: This is useful for triggering the notification center from a custom button, a keyboard shortcut, or an in-app event.

Custom bell

Every SDK supports replacing the default bell icon with your own UI element. The approach varies by framework:
  • ReactrenderBell prop with a render function receiving NotifizzBellContext.
  • Angular — Content projection via ng-content with a #customBellIcon template reference.
  • Vanilla JSsetBellElement() method that attaches click handling and unread data attributes.
See each SDK’s reference page for implementation details.

Default URLs

The widget connects to these endpoints by default: You should not need to change these unless instructed by Notifizz support.

Authentication options

All frontend SDKs accept the same authentication fields: See Authentication for a full guide on choosing the right strategy.

Next steps

React SDK

Full API reference

Angular SDK

Full API reference

Vanilla JS SDK

Full API reference