Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70747

Execute typescript functions called from executeScript from InAppBrowser

$
0
0

@temohpab wrote:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70747

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>