Did you remote debug the problem on the device already? Follow these instructions here to debug the problem in Safari dev tools: https://ionic.zone/debug/remote-debug-your-app#ios Look at the console and network tabs for errors.
Better question:
Why are you not using the code from the documentation? https://ionicframework.com/docs/native/admob/
There seems to be another showBanner method to be called after createBanner if I read the docs right.
Hi there, I was facing the same issue on iOS… you have to make sure you wait for platform ready to be able to have it run properly on iOS, it seems that android doesn’t really care about that, but your code should look like this… in your home.ts file (or wherever you are wanting to show the ad)
constructor(public navCtrl: NavController, public admobFree: AdMobFree, platform: Platform) {
{
platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
const bannerConfig: AdMobFreeBannerConfig = {
isTesting: false, // Remove in production
autoShow: true,
id: ‘YOUR OWN ID’
};
this.admobFree.banner.config(bannerConfig);
this.admobFree.banner.prepare().then(() => {
// success
}).catch(e => console.log(e));
});
}