My problem is... the first time I close the interstitial everything works nicely, let's say I closed and the this.function1() method was called for the first scenario, but from the second call on the listeners are appended to the INTERSTITIAL_CLOSE, for example, if I execute the second scenario to close and execute this.function2() the this.function1()is called again after executing this.function2().
What am I doing wrong? And how can I reset the listeners?
I'm having a problem after configured the Interstitial with this plugin.
First, I was able to display the Interstitial with the following config
I'm calling this code twice in my Home.ts, and for each call I setup a listener to execute a specific action when the user closes the interstitial
and in another method
My problem is... the first time I close the interstitial everything works nicely, let's say I closed and the
this.function1()
method was called for the first scenario, but from the second call on the listeners are appended to theINTERSTITIAL_CLOSE
, for example, if I execute the second scenario to close and executethis.function2()
thethis.function1()
is called again after executingthis.function2()
.What am I doing wrong? And how can I reset the listeners?