Alerts
What They Are
Similar to notifications, alerts are also non-modal elements used to inform users of events. Alerts, however, are more prominent and noticeable and should be used when it necessary to get the user's attention. Alerts appear above app content until actively dismissed by the user or until the alerts time-out. The time-out schedule can be configured by the app that triggers the alert.
As with notifications, an app can publish an alert to the user if the app is running in the background, or even if the app's card has been dismissed altogether by the user from the card view.
The design of the alert is at the discretion of the calling app; however, please note the following guidelines:
-
Include an app icon to inform the user which app is publishing the alert.
-
Include an action button that allows the user to dismiss the notification.
-
Provide other action buttons that allow the user to perform other actions associated with the alert event.

1. App icon
2. Action buttons
As with notifications, when a notification is received, the app can specify whether a sound is played by the device, or whether the device vibration is activated, or both. The app can customize the sound that is played by the device.
Unlike notifications, only one alert can be shown at any one time. If more than one alert is active at one time, the most recent alert is shown and older alerts are shown as the more recent alerts are dismissed.