The best thing you could do is to use the MsgPlus timers, which was also mentioned earlier in this thread (therefore, always read the whole topic
). An example would look like this:
code:
function OnEvent_SignIn(Email) {
if(Email == "someone@hotmail.com") {
MsgPlus.DisplayToast("Welcome", "Hello there!");
MsgPlus.AddTimer("SignIn_Sleep", 1000); //1000 milliseconds = 1 second
}
}
function OnEvent_Timer(TimerId) {
if(TimerId == "SignIn_Sleep") {
MsgPlus.DisplayToast("Welcome", "How are you today?");
}
}