I’m having problem with the setWebViewString where it doesn’t seem to be working. I have a html with a link that calls a function in a js file (both uploaded into project). The function is as follows:
function callPicker() {
window.AppInventor.setWebViewString(‘pass’);
}
It serves as just a call for the WebViewStringChange event where I treat whatever I need treated (for test purposes, I only had a toast call to show the string itself). After clicking such link, nothing happened, I call the WebView.WebViewString via blocks to check the content and it remains empty. I set the string via blocks and the event is triggered as expected.
The thing is, the getWebViewString works normaly, as I tested a function where a link in the same html calls a function in the same js file (after I have set the WebViewString via blocks):
function showAlert() {
alert(window.AppInventor.getWebViewString());
}
And the alert shows as expected.
I even have built the app and installed on my phone to see if it was a problem with the companion and had the same result.
Please prepare an example as small as possible, which demonstrates this issue and add the project (aia file) into this thread together with exact instructions for how to elicit the error, so someone can take a look
Yes. I make a html file to show list of item. And want to get back value when user click on each item. I tested on appybuilder, thunkable…it’s working fine. But not get back string value on makeroid…and here is my html file.
Thanks for the attention. I didn’t even had time to respond until now (or send the requested files). But seeing a solution is on the way with the new update, I’ll wait and report back if anyting keeps buggy (else, assume the problem is solved, hehe).
Thanks for asking questions
And i can also want to know this
Than search
I know that mepaytm extension use this
Than know webview has “on string change”
I have use webview and remove mepaytm extension .
Both same