Execute typescript functions called from executeScript from InAppBrowser

Hi, i’m using this plugin and i have a doubt who i can’t solve…

How can i “communicate” some code from executescript and then do a callback with a typescript function?

for example if i have this:


    this.browser.on("loadstop").subscribe((event)=>{
    this.browser.executeScript({code: if(document.getElementByID("ID").length > 1){functioncallBack();}})
    });
    
    callback(){
    this.browser.hide();
    }

I don’t know how to solve this question. Thanks

Hi @temohpab ,
I am having the same issue.
Did you find anything related to fix this?
Please guide me.