OneSignal-Website-SDK icon indicating copy to clipboard operation
OneSignal-Website-SDK copied to clipboard

Possibility to support amp-web-push visibility=blocked ?

Open piscis opened this issue 7 years ago • 0 comments

Description: We would like to extend our current AMP push widget to display the blocked state defined by:

https://www.ampproject.org/docs/reference/components/amp-web-push

Describes when the widget is shown. The value can be one of unsubscribed, subscribed, or blocked.
Widgets are initially hidden while the user's subscription state is computed.

The idea is to give the user visual feedback when he clicks on the blocked button and send him to a detailed description page where the unlock process is explaint. Instead of opening a popup.

Steps to Reproduce Issue:

  1. Add a AMP Widget with visibility blocked to your push notification page Example:
<amp-web-push-widget visibility="blocked" layout="fixed" width="45" height="64" ><a href="/push-notifications/" title="Notifications Blocked">BLOCKED</a>
</amp-web-push-widget>
  1. Open AMP page and block pushnotification in general
  2. Browser will show the unsubscribed button but should make the blocked state button visibile

Anything else: Not sure if you guy's whant to support this but it would be really helpful for use.

piscis avatar Feb 21 '18 14:02 piscis