Skip to content

Iframe inside a local html is only loading child page in android #1347

@bsjaffer

Description

@bsjaffer

We are trying to develop an offline feature in which we will be downloading bunch of HTML files and load in local. We are facing a strange issue in webview local HTML if it has a iframe.
When its loaded only iframe content is getting loaded in webview.

Can you please let me know what could be the issue here ?

Screenshot_20200427-152216

WebView
<WebView source={{ uri: "file:///data/user/0/com.example/files/parent.html" }} onError={error => { console.log('WebView onError - ', error); }} allowsFullscreenVideo bounces={false} renderError={() => { return null; }} allowFileAccess={true} allowFileAccessFromFileURLs={true} allowingReadAccessToURL={true} allowUniversalAccessFromFileURLs={true} onMessage={event => { console.log('WebView onMessage- ', event); }} mediaPlaybackRequiresUserAction={false} allowsInlineMediaPlayback={true} javaScriptEnabled={true} domStorageEnabled={true} startInLoadingState={true} originWhitelist={['*']} mixedContentMode={'always'} style={{ flex: 1 }} />

Parent.html
image

Child.html

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions