activate/disable notifications
hi,
i tried to implement a settings page, where i can toggle to disable or activate the novu notifications gloabally seperatly besides the default option in the Inbox Component.
i used the Subscriber preferences API to get and update the preferences.
if i manually trigger a workflow in my application and disable the in-App Notification before i still get the notification somehow.
i also checked the preference settings in the Inbox Component and they are disabled when i turn off my switch, so my code should work.

15 Replies
Hi 👋
A couple of questions: - Are you building custom UI for the inbox, or using custom UI only for this setting? - Did you get chance to check out global preference option supported in Inbox - as you mentioned, you are using api, did you fetch and update global preference?
A couple of questions: - Are you building custom UI for the inbox, or using custom UI only for this setting? - Did you get chance to check out global preference option supported in Inbox - as you mentioned, you are using api, did you fetch and update global preference?
i hope i understand you right here
- i only build a seperate page for the notification preference which should use the same logic as your Notification Inbox preferance which you already provide.
- yes im aware of this option, but as mentioned we want a seperate page for this
- yes i fetched the preferences for the subscriber and also updated them. when i console log the response it also get updated but the notifications still appear (so when toggle in my component is off -> toggle in inbox preferences is also off)
@Zwonkoh, you just advanced to level 1!
Could you please share the transactionId from the activity feed page for this workflow trigger?
transaction ID: txn_68b860c8dkkzgbruw0ke
here you can see the state is synced to the inbox toggle when turning of my switch

Bump
@Pawan Jain i also tried it with the usePreferences Hook now, but same problem there. can you help me ?
@Zwonkoh
Looking into this one now as there is some confusion on how global preference work
A small question: did you trigger these workflows from local studio?
Yes i run Novu Studio locally via npx novu@latest dev --port 3000. but the workflows are synced to my Novu project and when i look in the workflows on my dashboard i can also see the preference turned off there
Any update?
@Zwonkoh, you just advanced to level 2!
Hey, i got the same problem. Any updates on the fix?
Jaemil
Are you also using novu framework in local machine, triggering the workflow from local studio and facing this same issue?
Are you also using novu framework in local machine, triggering the workflow from local studio and facing this same issue?
for me it worked when i run it on production ,it seems like in local studio its bugged @Pawan Jain
Yes, this bug is with local studio