Hi,
I am making one experience with the use of Z.Prompt to require the name of the user I am encountering the following problems :
- Z.Prompt don’t work on Windows Preview, simply don’t appear any box and execution stops.
- On Android the popup requesting text appears but if we tap anywhere out of the popup it disappears and the execution stops. I have checked the “done” and “cancel” event on the exit from the popup after the show() but nothing seems to change.
- To avoid the problem I have create a variable to check the void insertion of data and make the popup reappear but it’s silly because that generate errors on execution time…
The code :
myname = Z.Prompt({
title: "Leaderboard",
text: "Insert your name:",
defaultValue: "test",
maxLength: 8,
filterProfanity: true
});
myname.on(“confirm”, function(nickname : string) {
console.log("They entered: " + nickname);
lastnicknameinserted = nickname;
};
Really simple but don’t work.
I hope someone will point me in the right direction or give some hint.