IOS when banner is loading - app content is not clickable
Opened this issue · 1 comments
ivanov84 commented
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:
- VPN to Russia
- open app
- check bottom of screen
Expected behavior
banner does not overlap app bottom buttons while ads is requesting
Smartphone (please complete the following information):
- Device: iPhone5se 2016
- OS: 15.8.2
ivanov84 commented
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)
....
}