[
https://issues.apache.org/jira/browse/CB-2082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joe Bowser resolved CB-2082.
----------------------------
Resolution: Won't Fix
This isn't a bug, this is Google enforcing their policy on iFrames. You can't
create an app with an iFrame to Google. While I have never heard of it
crashing an app, I have seen this error before on Android.
Here's more info on why you can't create an iFrame with Google in it on Stack
Overflow:
http://stackoverflow.com/questions/8700636/how-to-show-google-com-in-an-iframe
> iframe force close the app in android when no network connection
> ----------------------------------------------------------------
>
> Key: CB-2082
> URL: https://issues.apache.org/jira/browse/CB-2082
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 2.2.0
> Environment: Android-2.2 and 4.0
> cordova-2.1.0
> jquery mobile -1.2.0
> Reporter: mohanapriya
> Assignee: Joe Bowser
> Labels: android, phonegap
> Original Estimate: 5h
> Remaining Estimate: 5h
>
> I have used iframe to open the webpage in my android phonegap app.When the
> iframe is open and suddenly if the network connection fails then it showing
> the error as 'A secure connection could not be
> established(http://www.google.com).' and app force close.Please guide me.Its
> very urgent requirement.
> Here is my code:
> var iframe = document.createElement("IFRAME");
> iframe.setAttribute("src", "http://www.google.com");
> $("#IframeDiv").append(iframe);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira