You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
String script2 = 'var test = "Hello, World!";'+
'function getMessage(val) {return val;}' +
'getMessage(test);';
var testLocal = await widgetWebview.evalJavascript(script2);
and you can set testLocal to test but I couldn't apply it to post message.
Also, I tried setting value of test inside script1 and trigger onUrlChanged inside receiveMessage function and access it from script2. The variables in script1 were not accessible by script2.
Can we use a callback function to communicate between app & webview?