pdiddles03 Posted July 19, 2017 Share Posted July 19, 2017 I'm having a bit of an issue. I would assume because the game is no longer the focus, the ad being displayed full screen would cause the game to pause, but it does not. The admob free plugin also does not seem to have an event for "onadclose" or something. Does anybody know how to handle this? This is the cordova plugin i am using: https://github.com/ratson/cordova-plugin-admob-free Link to comment Share on other sites More sharing options...
bruno_ Posted July 20, 2017 Share Posted July 20, 2017 I don't know about that plugin. I use this one: https://github.com/floatinghotpot/cordova-admob-pro And it has this events: // onAdLoaded // onAdFailLoad // onAdPresent // onAdDismiss // onAdLeaveApp document.addEventListener('onAdFailLoad', function(e){ // handle the event }); Link to comment Share on other sites More sharing options...
pdiddles03 Posted July 20, 2017 Author Share Posted July 20, 2017 I actually figured it out. Documentation is very sparse and confusing. I find that a lot with libraries and plugins. It's like programmers make the documentation lol. Link to comment Share on other sites More sharing options...
Recommended Posts