To make a notification into a question add the following code to your JSON
Code: Select all
"question":true,
Next add a function for what will happen depending on the response
For example:
Code: Select all
"ok fun":[{"actions":[{"type":"toast", "id":"I'm a toast!"}]
"cancel fun":[]
cancel fun is activated when the user pressed cancel
By writing the following nothing will happen when pressed
Code: Select all
"cancel/ok fun":[]
Code: Select all
[{
"id":"question_notify",
"type":"notification",
"frames":[{"bmp":"person.png"}],
"text":"would you like to see a toast?",
"question":true,
"ok fun":[{"actions":[{"type":"toast", "id":"I'm a toast!"}],
"cancel fun":[]
}]