NovuN
Novu11mo ago
olivemonk

Issues with the inbox component

Hello everyone, so basically i created an account on novu cloud and also created a dummy react app, in that i used the react example of novu inbox component and used it with my applicationIdentifier and subscriberId but still I'm not getting the notifications when I'm triggering the notification for the same subscriberId from novu cloud

i have attached the react component below

// Inbox.tsx
import { Inbox } from "@novu/react";
import { useNavigate } from "react-router-dom";

function NovuInbox() {
  const navigate = useNavigate();

  return (
    <Inbox
      applicationIdentifier="aCs1wc4F2axM"
      subscriberId="b92f5c1a37d84eb2007e6faa"
      routerPush={(path: string) => navigate(path)}
      appearance={{
        variables: {
          colorPrimary: "#1990FE",
          colorForeground: "#D1D1D0",
          borderRadius: "0px",
        },
      }}
    />
  );
}

export default NovuInbox;


// App.tsx
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
import NovuInbox from "./Inbox";

function App() {
  return (
    <Router>
      <Routes>
        <Route path="/inbox" element={<NovuInbox />} />
      </Routes>
    </Router>
  );
}

export default App;

I have attached images for successful completion of workflow,
but inside inbox component nothing is showing up.

@DevRel @Support @Community Support
image.png
image.png
Was this page helpful?