-
Notifications
You must be signed in to change notification settings - Fork 340
Known Issues & Solution Workaround
This will happen if plugin is not correctly installed or referenced.
Try:
- Double check cordova.js referenced in your index.html, though you do not have it in your www folder, it will be created in staging folder by Cordova CLI when prepare/build:
<script type="text/javascript" src="cordova.js"></script>
- Refresh the files by removing the platform then add it back. Sometimes Cordova CLI may make mistakes, and not add the plugins correctly.
cordova platform remove android
cordova platform add android
This happen when banner already showed at bottom, soft keyboard will be unable to resize / push up the web content.
If you do have need for soft keyboard input, here are a few work arounds:
- solution 1: put the banner at top.
- solution 2: hide banner temporarily when input/textarea get focus.
See:
This will happen when banner showed AFTER soft keyboard is already open.
Using following code will fix it by re-show the banner:
// jquery required for following code
$("input").focus(function (e) {
setTimeout(function(){
AdMob.showBanner(AdMob.AD_POSITION.BOTTOM_CENTER);
}, 250)
}).blur(function (e) {
setTimeout(function(){
AdMob.showBanner(AdMob.AD_POSITION.BOTTOM_CENTER);
}, 250)
})
See:
- https://github.com/floatinghotpot/cordova-admob-pro/issues/23
- https://github.com/floatinghotpot/cordova-admob-pro/issues/175
After some investigation, I found that the FPS issue caused by banner is quite common, either Cordova or Unity, as it's caused by AdMob SDK.
According to Andrew suggested in AdMob official forum:
Banner ads (from any provider) can sometimes require significant resources to load and display, and as you saw they can negatively impact game performance, especially on older devices. There really isn't any way around this fact.
For this reason, AdMob recommends placing banners on pause screens, end-of-level screens, and so on -- screens that are displayed when the user isn't actively playing the game. This will help your framerate, and has the added bonus of a better CTR, since users are less likely to tap on an ad (even one they're interested in) if they're actively playing a game.
See: https://github.com/floatinghotpot/cordova-admob-pro/issues/279