Skip to content

Known Issues & Solution Workaround

Raymond Xie edited this page Jan 14, 2016 · 4 revisions

Error AdMob undefined

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

Game FPS drop when banner showed

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