How to set default notifications for a Scoped Application to off for all users?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 05:07 AM
Our Scoped application uses notifications (`sysevent_email_action`).
We have a client who would like to have the receipt of these to be disabled for all users by default and allow users to enable as they required (rather than force users to disable once they get annoying).
Is there a way to set this with an Application?
The default for all notifications seems to be enabled for all. My suspicion is that a user disabling is an override, like a blacklist.
I can see (attached) where in "Preferences > Notifications > General > Advanced" that a user can search for Notifications within an application and enabled/disable, and an option may be to provide a fix script to disable for each user, but this would be a one off and won't cater for new users of the application.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2024 06:17 AM
I have taken the approach to:
- add system property "x_my_app.notifications_suppress"
- add advanced condition to the notification
(function() {
var suppress = (
(gs.getProperty('x_my_app.notifications_suppress') == 'true') ||
(gs.getProperty('x_my_app..notifications_suppress_task_progress') == 'true')
);
return !suppress;
})();
Which should allow a client to configure suppression within our application