AMP also allows us to specify two optional URL endpoints to use with amp-user-notification. The first is specified in the attribute data-show-if-href, and the second in the attribute data-dismiss-href:
- data-show-if-href: This can be used to determine whether the notification should be shown. A request is made to the URL when the notification is first loaded. If the server sends a JSON response of {"showNotification": true} then the notification is shown.
- data-dismiss-href: A request is made to the second URL on dismissal of the notification. This can be used to store that this user has dismissed the notification.
If there are multiple notifications they are queued ...