Getting Started
Novu provides you a set of API's and components to create rich customized notification center experiences. You can either choose to work headless with our notification feed API. And create your own custom notification center user-interface, or user our ready-to-use UI and customize partially.
React component
After creating your Novu Platform account and creating your first notification template it's time to connect the In-app channel to your application.
npm install @novu/notification-center
And in the appropriate place withing your app add the PopoverNotificationCenter
component with the NovuProvider
import { NovuProvider, PopoverNotificationCenter, NotificationBell } from '@novu/notification-center';
function Header() {
function onNotificationClick(notification: IMessage) {
navigate(notification.cta.data.url);
}
return (
<NovuProvider subscriberId={'USER_ID'} applicationIdentifier={'APP_ID_FROM_ADMIN_PANEL'}>
<PopoverNotificationCenter onNotificationClick={onNotificationClick}>
{({ unseenCount }) => <NotificationBell unseenCount={unseenCount} />}
</PopoverNotificationCenter>
</NovuProvider>
);
}
That's it! Now you're ready to send your first notifications using Novu.
Not using React? Checkout the iFrame Embed docs