Add option for users to turn off push notifications

Created on 26 March 2023, over 1 year ago
Updated 27 March 2023, over 1 year ago

I have Push Framework, Push Framework Email, and DANSE installed and enabled.

For the life of me, I can't figure out where a user manages their push settings - basically, whether they want them on or off.

I've looked in all of what seems the likely places to find or enable any settings, but with no success.

I see that the module creates 2 actions - to either allow or block all push notifications - but I don't even see where these are available )either to an individual usr or the site admin).

Would somebody please point me in the right direction. Thanks!

Important note for potential implementers

Such an option can only be included together with a global option that decided whether it will be available to registered users or not. See comments below for details.

Feature request
Status

Active

Version

2.2

Component

Documentation

Created by

🇬🇧United Kingdom Janner

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Janner
  • 🇩🇪Germany jurgenhaas Gottmadingen

    At this point, there are no settings available yet. This module is basically pushing notifications - mainly from the DANSE module - by going through the available channels and picking the first successful one for each user. E.g. if OneSignal is enabled and the user has a registered device, then the notification is pushed to that channel. And only if that's not possible, the module falls back to other available channels.

    The actions to enable or disable push activity are system-wide and can e.g. be used during deployment or migration, where you probably want to disable notifications until everything is in good shape again.

    Whether a user gets a notification or not is being decided in DANSE according to all the rules available there. DANSE was originally build to create notifications from a business perspective, so without any choice by the user. That's what gets done there with the recipient selection plugins. Later, DANSE also got a subscription functionality where the user can make some decisions over what they want to be notified about.

  • 🇬🇧United Kingdom Janner

    Thanks for the clarification and explanation.

    For some, the option to track DANSE notifications either via a tab on their profile page or via the dedicated RSS feed might suffice, in which case they wouldn't also want to receive email alerts. There might also be times when a user wants or needs to pause notifications.

    All of that to say that offering users a simple toggle to enable/disable push notifications would be a great addition to this module in my opinion. I appreciate that this may fall outside your original vision for this module, but it would be great if you would consider adding this functionality.

  • 🇩🇪Germany jurgenhaas Gottmadingen

    Well, the problem is that DANSE had originally been built with the requirement that the website (i.e. intranet/portal) has important information that HAS to be delivered to the registered users. If the push framework ever should get a user choice to disable push notifications, then this needs to go along with a sitewide setting, whether this option should be available to users or not. Similar to e.g. whether users are allowed to select their own timezone. Some websites don't allow that for their users.

    MRs welcome.

Production build 0.71.5 2024