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

A general question about object

$
0
0

@pimol wrote:

I'm pretty sure that this is a typescript or debugging question, may be it's silly... I'm new to js or ts, I just started with them when I started with ionic.
In my app I open a browser InApp (ionic native inapp), the URL is a non-interactive page, it only display data, depending by a parameter coming by the app. Later the user can open it again with different (or equal) parameter, but however the user have to close the browser after read.
Using the console for debug, I see that browser page remain opened (or, at least, I can see them in devtools page of Chrome, listed under my device as blank pages.
So I subscribed the event close of browser and when the event raises I set it to undefined. Few lines:

        this.browserPage = this.iab.create(url, '_self', options)
        this.browserPage.on('exit').subscribe((data) => {
            this.browserPage = undefined;
        });

Nothing change.
Is only a debugging effect? Have I to destroy the object or it is irrelevant on Android (and IOS)?
To close the browser is enough, or I'm forgetting anything?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



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