admobFree: cordova_not_available


#1

I use this code

    this.admobFree.banner.config(bannerConfig);
    // banner
    this.admobFree.banner.prepare().then(() => {

    }).catch(e => console.log('Error Admob', e));

https://upic.me/i/wg/70untitled.png

cordova_not_available?


Ionic Admob Free Plugin cordova-plugin-admob-free
#2

Cordova only works on Devices (real or simulator), not on testing in the browser.


#3

I run it on the browser Thank you!!


#4

I run it on simulator but not work.

showBanner() {

let bannerConfig: AdMobFreeBannerConfig = {
  isTesting: true, // Remove in production
  autoShow: true,
  id: "XXXXXXXXX"
};

this.admob.banner.config(bannerConfig);

this.admob.banner.prepare().then(() => {
}).catch(e => console.log(e));

}