Skip to content

Webview not working on ios runtime #3442

@tsonevn

Description

@tsonevn

From @calebeaires on January 8, 2017 21:52

WebView show on Android runtime, but not on ios runtime. Html is a simple page with a simple div. Here is the code.

XML

<ActionBar class="action-bar" [title]="ler.passoTitulo">
</ActionBar>
<StackLayout class='card'>
    <GridLayout class="box" rows="auto" columns="auto, *, auto, auto">
        <Image col="0" src="~/img/Notes.png"></Image>
        <Label col="1" class="label-title" [text]="ler.passoTitulo"></Label>
        <Button col="2" class="fa" (tap)="onBackText()" *ngIf="!hideBackButton" text="&#xf0a8;"></Button>
        <Button col="3" class="fa" (tap)="onNextText()" *ngIf="!hideNextButton" text="&#xf0a9;"></Button>
    </GridLayout>
    <StackLayout>
        <WebView *ngIf="ler.texto" [src]="ler.texto"></WebView>
    </StackLayout>
</StackLayout>

Nativescript: 2.4
ios emulator: ios 9.2

Copied from original issue: NativeScript/ios-jsc#706

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions