Sharing some good collective information on Toast Notifications in Universal Windows Apps.

XML

  1. <toast launch="app-defined-string">
  2. <visual>
  3. <binding template="ToastGeneric"> <text>Sample</text> <text>This is a simple toast notification example</text>
  4. <image placement="AppLogoOverride" src="oneAlarm.png" /> </binding>
  5. </visual>
  6. <actions>
  7. <action content="check" arguments="check" imageUri="check.png" />
  8. <action content="cancel" arguments="cancel" /> </actions> <audio src="ms-winsoundevent:Notification.Reminder" />
  9. </toast>
<visual>: Content available for the users to visually see, including the text and images.
<actions>: Buttons/inputs the developer wants to add inside the notification.
<audio>: The sound played, when the notification pops.

output

output

New Functionalities

  1. Expanding the toasts on the mobile.
  2. More types of activations through actions.
  3. No more ToastCapable : Now, there is no need to declare the capability of whether app is toast capable or not.
  4. Toasts and Tiles can now get in Synchronization : In Windows 10, we added the ability for an app to be notified, when the app’s collection of the notifications is changed in any way and is not caused by the app’s local client.
  5. New Notification Setting behaviour : In Windows 10, only after an app sends a first toast notification, it will be added to the Notifications & Actions section of System Settings, from which the user can disable or enable the toast notifications for your app at any time.

Interactive toast

Various activation types can be set.

  1. Activation type=foreground
    Tap button>app launches>retrieve args>take actions.
  2. Activation type =background
    Tap>Task launches>retrieve args>Take actions.
  3. Activation type = protocol
    Tap>Protocol activates>Web/app(as per uri match).
  4. Activation type = system
    Tap>system handles(reminder/alarm).

Special Toast Scenarios: scenario="senario name".

Notification Types

  1. Tile
  2. Badge
  3. Toast
  4. Raw(background Task)

WNS

Developers Can do,