On iOS, under Settings > General > Usage > Manage Storage, my app takes around 800KB of “Documents & Data”.
If I put iAds into my app and call a banner ad, then the size jumps to 4.1MB and remains there.
If I use AdMob and do the same thing, the size jumps to ~6MB, and then steadily increases. (Sometimes, it will go to 1.8MB or so, then when I return to the app, it’ll jump to ~6MB.) Quitting the app and then restarting will bring the size down a bit, but usually not back to the start size. It’s the same code as the iAds though, so I don’t know why only AdMob would increase.
All the ads are test ads.
Does anyone know why this is happening? Does showing these ads need >4MB of space? Is there a way to clear this memory before closing the app?
There’s not much to my ads, but the basic flow is this:
In main.lua,
On app start: initialize ads, show banner
On app suspend: hide ads
On app resume: show banner
On app exit: hide ads
Thanks in advance!