Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS banner advertisement at bottom of screen floats and covers bottom page content #272

Open
basvdijk opened this issue Aug 26, 2023 · 1 comment

Comments

@basvdijk
Copy link

basvdijk commented Aug 26, 2023

Describe the bug
When showing a banner on iOS at the bottom using the code from the README.MD:

    async initializeAds(): Promise<void> {
        const { status } = await AdMob.trackingAuthorizationStatus();

        await AdMob.initialize({
            initializeForTesting: true,
        });

        const options: BannerAdOptions = {
            adId: 'ca-app-pub-xxxxxxxxx/xxx',
            adSize: BannerAdSize.ADAPTIVE_BANNER,
            position: BannerAdPosition.BOTTOM_CENTER,
            margin: 0,
            isTesting: true,
            // npa: true
        };
        await AdMob.showBanner(options);
    }

It covers the bottom content of the webpage
image

On Android the same code works fine and the banner is positioned below the scrollable content area:

image

It looks like this is related to:

Sites mentioning this issue as well:

If seems that #33 (comment) this code piece fixes the issue, but can't imagine this is the preferred way to do so.

To Reproduce

  • Create a new Ionic app for example the sidemenu template
  • Add this AdMob plugin as specified in the README.MD

Expected behavior
I expect the banner to be below the scrollable area on iOS. This allows buttons on the bottom to be tappable

Smartphone (please complete the following information):

  • Device: iPhone 13 Pro Max
  • OS: iOS 16.6
@distante
Copy link
Contributor

@rdlabo just ping you here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants