The following issue occurs in Android 4.4 devices and above.
This is what our iframe looks like:
<iframe frameborder=0 id="myIFRAME"></iframe>
The following is the way we are getting iframe programmatically:
if(document.getElementById("myIFRAME")){
me.setMyIFRAME(document.getElementById("myIFRAME").contentWindow);
}
This is causing a security error related to Protocol mismatch:
"Uncaught SecurityError: Blocked a frame with origin "https://www.google.com" from accessing a frame with origin "file://". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "file". Protocols must match.
We are using Sencha touch with Cordova to develop our project.