This site uses cookies. By continuing to browse the site, you agree to our use of cookies. Find out more about cookies.
Skip to main content
Metadecidim's official logo
  • English Triar la llengua Elegir el idioma Choose language
    • Català
    • Castellano
Sign Up Sign In
  • Home
  • Processes
  • Assemblies
  • Initiatives
  • Consultations
  • Conferences
  • Help

Propose new functionalities for Decidim software

#DecidimRoadmap Designing Decidim together

Phase 1 of 1
Open 2019-01-01 - 2030-12-31
Process phases Submit a proposal
  • The process
  • Debates
  • Propose new features
  • News
chevron-left Back to list

Ask permission to client for Push Notifications

Avatar: InnovacióDemocràtica InnovacióDemocràtica verified-badge
16/09/2021 12:19  
Accepted / In progress

Ref. PWA13.2

NOTE: this feature is from a big development. See PWA discussion at GitHub.

Is your feature request related to a problem? Please describe.

As a participant, I want to be able to give my permission and revoke it.

Describe the solution you’d like

As other apps are abusing the web push API for spamming, what we’ll do is to not show it on the first visit, and to not show it even when the participant has first signed in, at least for the moment, as most of the time the participant can have others actions in mind when getting in Decidim (for instance, for verificating herself and making a proposal or a support).

What we’ll do is to follow some of the best practices mentioned in Permission UX from Google Web Fundamentals:

  • For getting permission for mobile notifications, we’ll have an option at our Settings Panel, in more details, it will be in “My account” -> “Notifications settings”:

Push notifications
Get push notifications to find out what’s going on when you’re not on Decidim. You can turn them off anytime.

  • Participants will be able to revoke this permission
  • This setting will only be shown when the server has been configured and the browser client supports Web Push Notifications.

Describe alternatives you’ve considered

We could just ask permissions when the first login, but as we’ve said that’s difficult to make it elegant, so we’ll just have it in the account settings at the moment.

We could also have a banner (something similar to what we do in A2HS), but at the moment we want to test this feature and see how it works before “pushing” it to our users (pun intended).

Additional context

As an example of this Permission UX Settings Panel pattern you can see in Twitter:

How this permission gets shown after the setting is checked:

Does this issue could impact on users private data?
It could have some personal data in some notifications (for instance, in the case of Messaging)

Acceptance criteria

  • Given that I’m a registered participant and my browser allows push notifications
    When I go to “My account” -> “Notifications settings”
    Then I see a section called “Push notifications”
    and when I check this setting
    Then I get asked for permission to receive Push notifications
  • Given that I’m a registered participant and my browser doesn’t allow push notifications
    When I go to “My account” -> “Notifications settings”
    Then I don’t see the “Push notifications” section.
  • Given that I’m a registered participant, my browser allows push notifications and I’ve revoked this permission in my browser
    When I go to “My account” -> “Notifications settings”
    Then I see a section called “Push notifications” with the following message:

To get notifications from Decidim, you’ll need to allow them in your browser settings first.

  • Given that I’m a registered participant, my browser allows push notifications and I’ve accepted the Push notifications
    When I go to “My account” -> “Notifications settings”
    Then I see a section called “Push notifications”
    and when I uncheck this setting
    Then I’ve revoked permission to receive Push notifications


  • Filter results for category: Follow and notifications Follow and notifications

This proposal has been accepted and is under development

Endorsements count0
Ask permission to client for Push Notifications Comments 0

Reference: MDC-PROP-2021-09-16757
Version number 2 (of 2) see other versions
Check fingerprint

Fingerprint

The piece of text below is a shortened, hashed representation of this content. It's useful to ensure the content hasn't been tampered with, as a single modification would result in a totally different value.

Value: 757e22c24b1354486f2ff26ad7745e54ac7d112f19dd81a124b6b875c88064fe

Source: {"body":{"en":"<p>Ref. PWA13.2</p><p>NOTE: this feature is from a big development. See <a href=\"https://github.com/decidim/decidim/discussions/8334\" target=\"_blank\">PWA discussion at GitHub</a>.</p><p><strong>Is your feature request related to a problem? Please describe.</strong></p><p>As a participant, I want to be able to give my permission and revoke it.</p><p><strong>Describe the solution you’d like</strong></p><p>As other apps are abusing the web push API for spamming, what we’ll do is to not show it on the first visit, and to <strong>not</strong> show it even when the participant has first signed in, at least for the moment, as most of the time the participant can have others actions in mind when getting in Decidim (for instance, for verificating herself and making a proposal or a support).</p><p>What we’ll do is to follow some of the best practices mentioned in <a href=\"https://developers.google.com/web/fundamentals/push-notifications/permission-ux\" target=\"_blank\">Permission UX from Google Web Fundamentals</a>:</p><ul><li>For getting permission for mobile notifications, we’ll have an option at our Settings Panel, in more details, it will be in “My account” -&gt; “Notifications settings”:</li></ul><p><em>Push notifications</em><strong><em><br></em></strong><em> Get push notifications to find out what’s going on when you’re not on Decidim. You can turn them off anytime.</em></p><ul><li>Participants will be able to revoke this permission</li><li>This setting will only be shown when the server has been configured and the browser client supports Web Push Notifications.</li></ul><p><strong>Describe alternatives you’ve considered</strong></p><p>We could just ask permissions when the first login, but as we’ve said that’s difficult to make it elegant, so we’ll just have it in the account settings at the moment.</p><p>We could also have a banner (something similar to what we do in A2HS), but at the moment we want to test this feature and see how it works before “pushing” it to our users (pun intended).</p><p><strong>Additional context</strong></p><p>As an example of this Permission UX Settings Panel pattern you can see in Twitter:</p><p><img src=\"https://i.imgur.com/jmiPfSN.png\"></p><p>How this permission gets shown after the setting is checked:</p><p><strong><img src=\"https://i.imgur.com/Vojqj8H.png\"></strong></p><p><strong>Does this issue could impact on users private data?<br></strong> It could have some personal data in some notifications (for instance, in the case of Messaging)</p><p><strong>Acceptance criteria</strong></p><ul><li>Given that I’m a registered participant and my browser allows push notifications<strong><br></strong> When I go to “My account” -&gt; “Notifications settings”<strong><br></strong> Then I see a section called “Push notifications”<strong><br></strong> and when I check this setting<strong><br></strong> Then I get asked for permission to receive Push notifications</li><li>Given that I’m a registered participant and my browser <strong>doesn’t</strong> allow push notifications<strong><br></strong> When I go to “My account” -&gt; “Notifications settings”<strong><br></strong> Then I don’t see the “Push notifications” section.</li><li>Given that I’m a registered participant, my browser allows push notifications and I’ve revoked this permission in my browser<strong><br></strong> When I go to “My account” -&gt; “Notifications settings”<strong><br></strong> Then I see a section called “Push notifications” with the following message:</li></ul><p>To get notifications from Decidim, you’ll need to allow them in your browser settings first.</p><ul><li>Given that I’m a registered participant, my browser allows push notifications and I’ve accepted the Push notifications<strong><br></strong> When I go to “My account” -&gt; “Notifications settings”<strong><br></strong> Then I see a section called “Push notifications”<strong><br></strong> and when I uncheck this setting<strong><br></strong> Then I’ve revoked permission to receive Push notifications</li></ul><p><br></p>"},"title":{"en":"Ask permission to client for Push Notifications"}}

This fingerprint is calculated using a SHA256 hashing algorithm. In order to replicate it yourself, you can use an MD5 calculator online and copy-paste the source data.

Share:

link-intact Share link

Share link:

Please paste this code in your page:

<script src="https://meta.decidim.org/processes/roadmap/f/122/proposals/16757/embed.js"></script>
<noscript><iframe src="https://meta.decidim.org/processes/roadmap/f/122/proposals/16757/embed.html" frameborder="0" scrolling="vertical"></iframe></noscript>

Report inappropriate content

Is this content inappropriate?

Reason

0 comments

Order by:
  • Older
    • Best rated
    • Recent
    • Older
    • Most discussed

Add your comment

Sign in with your account or sign up to add your comment.

Loading comments ...

  • Terms and conditions of use
  • About the community
  • Download Open Data files
  • Metadecidim at Twitter Twitter
  • Metadecidim at Instagram Instagram
  • Metadecidim at YouTube YouTube
  • Metadecidim at GitHub GitHub
Creative Commons License Website made with free software.
Decidim Logo

Confirm

OK Cancel

Please sign in

decidim Sign in with Decidim
Or

Sign up

Forgot your password?