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 when banner is loading - app content is not clickable #321

Open
ivanov84 opened this issue May 27, 2024 · 1 comment
Open

IOS when banner is loading - app content is not clickable #321

ivanov84 opened this issue May 27, 2024 · 1 comment

Comments

@ivanov84
Copy link

Describe the bug
Bottom of app is unreachable because google gives response to request ad with delay. My app logic - to request again and bottom screen is unavailable nonstop.

To Reproduce
Steps to reproduce the behavior:

  1. VPN to Russia
  2. open app
  3. check bottom of screen

Expected behavior
banner does not overlap app bottom buttons while ads is requesting

Screenshots
image

Smartphone (please complete the following information):

  • Device: iPhone5se 2016
  • OS: 15.8.2
@ivanov84
Copy link
Author

HOTFIX:

func showBanner(_ call: CAPPluginCall, _ request: GADRequest, _ adUnitID: String)
{
    ....
    self.bannerView = GADBannerView(adSize: bannerSize)
    // IVANOV: HOTFIX
    //self.addBannerViewToView(self.bannerView, adPosition, adMargin)
    self.bannerView.translatesAutoresizingMaskIntoConstraints = false
    self.bannerView.adUnitID = adUnitID
    self.bannerView.rootViewController = plugin?.getRootVC()
    ....
}

and

public func bannerViewDidReceiveAd(_ bannerView: GADBannerView)
{
    ....
    // IVANOV: HOTFIX
    self.addBannerViewToView(bannerView, "BOTTOM_CENTER", 0)
    ....
}

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

1 participant