Skip to content

Help: support: native script webview getting issue #8574

@sayanamanikanta

Description

@sayanamanikanta

When i try to use the angular webpage into native script angular webview i'm getting the error.

This is the code i'm using the bellow code from the native script docs

<WebView [src]="webViewSrc" (loadStarted)="onLoadStarted($event)" (loadFinished)="onLoadFinished($event)"> </WebView>

`webViewSrc = "https://***************.firebaseapp.com/#/authentication/login";

onLoadStarted(args: LoadEventData) {
    const webView = args.object as WebView;

    if (!args.error) {
        console.log("Load Start");
        console.log(`EventName: ${args.eventName}`);
        console.log(`NavigationType: ${args.navigationType}`);
        console.log(`Url: ${args.url}`);
    } else {
        console.log(`EventName: ${args.eventName}`);
        console.log(`Error: ${args.error}`);
    }
}

onLoadFinished(args: LoadEventData) {
    const webView = args.object as WebView;

    if (!args.error) {
        console.log("Load Finished");
        console.log(`EventName: ${args.eventName}`);
        console.log(`NavigationType: ${args.navigationType}`);
        console.log(`Url: ${args.url}`);
    } else {
        console.log(`EventName: ${args.eventName}`);
        console.log(`Error: ${args.error}`);
    }
}`

when i run the code getting bellow error

image_2020_05_08T06_47_48_125Z

Can any one help how can i fix this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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