Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.

[iOS] does not work alongside cordova-plugin-statusbar #260

Closed
lone-cloud opened this issue Jul 5, 2018 · 4 comments
Closed

[iOS] does not work alongside cordova-plugin-statusbar #260

lone-cloud opened this issue Jul 5, 2018 · 4 comments

Comments

@lone-cloud
Copy link

Interstitial ads cause the app body to get vertically mis-aligned after being shown ONLY when the cordova-plugin-statusbar is also installed. In other words, the page content starts to overflow past the banner. Some have suggested to call admob.banner.show() (this does solve the problem when called manually) in the handler of the "interstrial close event", but this event not seem to get called anymore in iOS (tested with 11.4).

@ratson
Copy link
Owner

ratson commented Jul 6, 2018

@hoboman313 Would you setup a example repo showing the problem?

@lone-cloud
Copy link
Author

lone-cloud commented Jul 6, 2018

I would like not to unless you're unable to repro the issue. Note that this is a dup of #107 from last Sept. which went unresolved but its first workaround of listening on "admob.interstitial.events.CLOSE" no longer works as that event is no longer triggered when closing an interstitial in iOS. I had to go with the second suggested workaround of removing "cordova-plugin-statusbar" which worked but is kinda sucky.

My env is:
cordova-cli: 7.0.0
cordova-plugin-admob-free: ^0.17.2
cordova-ios: ^4.5.4
cordova-plugin-wkwebview-engine: ^1.1.4

@lone-cloud
Copy link
Author

The CLOSE callback workaround works well if the next interstitial does not get prepared when one is already being shown. Additional comments and fixes on the issue are in the comments of #232
Closing.

@tennist
Copy link
Collaborator

tennist commented Jul 11, 2018

@hoboman313 I added the line of code to resize the view after closing an interstitial in my PR #262

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

No branches or pull requests

3 participants