OneSignal-Website-SDK
OneSignal-Website-SDK copied to clipboard
Possibility to support amp-web-push visibility=blocked ?
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:
- 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>
- Open AMP page and block pushnotification in general
- 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.