Error: Java exception was raised during method invocation Android 10

It is becoz of iframe , So created iframe using typescript inst of html, I hope It will be helpful for someone

var target = document.getElementById("iframeParent");
var newFrame = document.createElement("iframe");
 newFrame.setAttribute("src", "srcstring");
 newFrame.height="100%";
 newFrame.width="100%";
 newFrame.id="iframeView";
 newFrame.setAttribute("frameBorder", "0");
 if (target !== null) {
  target.appendChild(newFrame);
1 Like