Vishnu
Vishnu

Reputation: 521

sending additional data with a windows 8 push toast notification

I'm building a windows 8 application wish toast notifications that are pushed. I know that when the toast is clicked, the application is started, possibly with the ability to see the payload of the toast that launched it.

However, is it possible for me to send additional data that can be interpreted by the client (like a unique id), that is not shown on the toast?

Upvotes: 1

Views: 721

Answers (1)

Jim O'Neil
Jim O'Neil

Reputation: 23764

Take a look at the launch attribute of the Toast schema. What you put in there is up to you. When the user clicks on the toast, the app will be activated with an ActivationKind of Launch, and you can grab the string from the args passed into the OnLaunched handler (see How to handle activation from a toast notification)

Upvotes: 3

Related Questions