capacitor-community / capacitor-community/admob
Can't dynamically adjust margin value or have multiple banner ads throughout app
- Dominant language
- Java
- Stars
- 296
- Forks
- 97
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 7
Description
A clear and concise description of what the bug is.
I'm trying to conditionally set the margin key's value for the banner ad options and am unable to do so. The plan was to have a banner ad display above the navigation on the first level views, then on secondary views have a banner ad display above a toolbar that has a different height, which would require the banner ad to have a new margin in order to be flush with the top of the toolbar.
However, it looks like it's not possible to dynamically/conditionally set the margin value. Nor does it appear that multiple banners can be used throughout an app.
Please let me know if these assumptions are wrong and point me in the right direction. Any help would be greatly appreciated. Thank you in advance!
I'm using reactjs (version prior to hooks...),capacitorjs v3, and exporting for Android
Contributor guide
Research direction
Reproduce the reported banner setup in a React and Capacitor Android app, then inspect the plugin's banner options and lifecycle entry points. Confirm whether conditional margin changes and multiple banners are supported; done means the requested first-level and secondary-view layouts work as described or the supported limitation is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, react
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100