Notifications (368)

Any information about the fun attribute is given here.

Moderator: Plugin Moderators

User avatar
Inhabitant of a Universe
Posts: 4565
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta
Phone model: Xperia™ XZ1 SO-01K

Re: Notifications (368)

Post by Bearbear65 » Thu May 24, 2018 4:27

How to make your notifications into a question

To make a notification into a question add the following code to your JSON

Code: Select all

Default is false

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":[]
Ok fun is activated when the user pressed ok
cancel fun is activated when the user pressed cancel

By writing the following nothing will happen when pressed

Code: Select all

"cancel/ok fun":[]
Here is an example JSON

Code: Select all

"text":"would you like to see a toast?",
"ok fun":[{"actions":[{"type":"toast", "id":"I'm a toast!"}],
"cancel fun":[]
ImageJust my opinion
Theotown forum authoritarian

Post Reply Previous topicNext topic

Return to “Fun attribute”

Who is online

Users browsing this forum: No registered users and 1 guest