ratson / cordova-plugin-admob-free

New development has been moved to "admob-plus-cordova", https://github.com/admob-plus/admob-plus/tree/master/packages/cordova
https://github.com/admob-plus/admob-plus
MIT License
499 stars 214 forks source link

On IOS the plugin breaks the Statusbar Background Color #437

Open desmeit opened 3 years ago

desmeit commented 3 years ago

My Code:

var admobid = {}

if (/(android)/i.test(navigator.userAgent)) {  // for android & amazon-fireos
  admobid = {
    banner: 'XXX',

  }
} else if (/(ipod|iphone|ipad)/i.test(navigator.userAgent)) {  // for ios
  admobid = {
    banner: 'XXX',

  }
}

admob.banner.config({
              id: admobid.banner,
               isTesting: true,
               autoShow: true,
              bannerAtTop: true,
              offsetTopBar: true,
             overlap: false,
})
            admob.banner.prepare()

After initialisation the banner is showing but the Statusbar which I defined with <preference name="StatusBarBackgroundColor" value="#46BFBD" /> is black. If I set bannerAtTop to false it is working. How can I fix this?