Open ConcaveIT opened 6 years ago
showInterstitialAds(){ const interstitialConfig: AdMobFreeInterstitialConfig = { id: 'ca-app-pub-6876559383946731/8334659242', isTesting: false, autoShow: true }; this.admobFree.interstitial.config(interstitialConfig);
this.admobFree.interstitial.prepare() .then(() => { document.addEventListener('admob.interstitial.events.EXIT_APP', (event) => { console.log('clicked'); }); }) .catch(e => console.log(e)); }
same problem but with banner only
@Yacinknn, i did not found any proper solution But you solve this by create a variable false outside eventListener and inside make it true. That will work.
showInterstitialAds(){ const interstitialConfig: AdMobFreeInterstitialConfig = { id: 'ca-app-pub-6876559383946731/8334659242', isTesting: false, autoShow: true }; this.admobFree.interstitial.config(interstitialConfig);