Novu changelog
Framework-native Inbox navigation
The new Inbox 2.0.0
release now supports a framework-native navigation system that replaces the old browser full-page navigation system we had in place. This ensures smooth and fast client-side navigation while maintaining the browser history for a more delightful end-user experience.
The new routerPush
will receive the url
path defined within the workflow on both the notification and action levels:
export const inAppDemo = workflow("in-app-demo", async ({ step }) => {
await step.inApp("send-in-app", async () => {
return {
subject: "This is a _test_ subject" + new Date(),
body: "This is a test body",
avatar: 'https://static.vecteezy.com/system/resources/thumbnails/006/487/917/small_2x/man-avatar-icon-free-vector.jpg',
redirect: {
url: "/a-relative-page-in-my-app",
},
primaryAction: {
label: 'Accept',
redirect: {
url: '/another-relative-page-in-my-app',
}
},
secondaryAction: {
label: 'Secondary action',
redirect: {
url: 'https://google.com',
}
},
};
});
});