Admob-free: Stop showing intesterial ads while app in backgound/pause state


#1

Hi All,

I’m integrating admob-free native to my android app and noticed that the interstitial ads showing up while app is minimized(in background). How to stop showing app while its in background?? any ideas will be helpfull.

Tried this but failed.

document.addEventListener(“pause”, function() {
// do something
}, true);

Thanks in advance.