Ionic Interstitial Config to Constructor

PHOTO EMBED

Thu Jan 14 2021 22:26:18 GMT+0000 (UTC)

Saved by @zinotrust #html

platform.ready().then(() => {
  this.admobFree.interstitial.config(this.interstitialConfig);
  this.admobFree.interstitial.prepare()
    .then(() => { }).catch(e => alert(e));
});

this.admobFree.on('admob.interstitial.events.CLOSE').subscribe(() => {
  this.admobFree.interstitial.prepare()
    .then(() => {}).catch(e => alert(e));
});
content_copyCOPY