Skip to content

loadUrl returns blank screen #2

Closed
@kapilrc

Description

@kapilrc

Hi @leolabs @NeoLegends @mraerino

I am trying to airplay secondary screen (html page) by calling method

cordova.plugins.externalScreen.createScreenListener().then(res => {
    Externalscreen = res;
   ExternalScreen.loadUrl("path/to/html/page")
});

This path is relative to the app folder, is displaying blank.

Could you please help me understand it. Below is the code

let Externalscreen = await cordova.plugins.externalScreen.createScreenListener(); //works
Externalscreen.on("disconnect", r => console.log("disconnected", r), e => console.error("unable to disconnect", e)); //works
Externalscreen.on("connect", r => console.log("connected", r), e => console.error("unable to connect", e)) ////works
var url = await Externalscreen.loadUrl(".path/to/html-page"); //returns blank screen - not working
Externalscreen.emit("title", {name: "ABC"}) // couldn't try

If I get a demo doc it will be really helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions