N
Novu2y ago
empe

Novu dashboard (GUI) notification center modifications

I receive in-app notifications to the notification center on behalf of a test subscriber ID that Novu automatically creates. However, I want to test different scenarios with different subscribers with unique names and attributes. Is it possible to change the subscriber ID the notification center listens to?
7 Replies
Pawan Jain
Pawan Jain2y ago
No, it will not be possible to change subscriberId, however you can use variables and send those values in payload option of test trigger
empe
empeOP2y ago
Can we submit a feature request?
Pawan Jain
Pawan Jain2y ago
Still I feel it will not be great idea to use any of your user subscriberid to see their messages Right now subscriberid used here in this Notification center is your's account that you created during signup
empe
empeOP2y ago
I remember that, but I think it would be great if we could clone the exact "image" of what our users would see. Of course, this should only be done in the development environment, not in production, as accessing subscribers' notifications in a live environment would not be appropriate. Or to add another attribute to a subscriber, like: test: true / false And then being able to change the listening of the notification center only to subscribers with this attribute marked as "true"
Pawan Jain
Pawan Jain2y ago
@BiswaViraji and @george.d recently worked on this code to add few functionalities I would like to know their opinions also. This is nice idea 🙌🏻
empe
empeOP2y ago
And you are a nice person!
george.d
george.d2y ago
We do not support such functionality, but you could do couple of things in order to mimic subscribers notification in development: 1. Create demo app where you initialize the notification center with the desirable subscriber. 2. Use the API 3. Update the subscriber id in the notification center in the dashboard to static desirable subscriber id https://github.com/novuhq/novu/blob/366bba7e3f9407bbc971cf4fa86a0718bd3dec90/apps/web/src/components/layout/components/NotificationCenterWidget.tsx#L16
Want results from more Discord servers?
Add your server