flutter-appodeal icon indicating copy to clipboard operation
flutter-appodeal copied to clipboard

Cache expiry

Open kiranrkg opened this issue 3 years ago • 3 comments

When we set the package for auto cache it downloads and cache the ads. But after a while the app is becoming slower and slower on some devices it’s crashing. Once the ad is displayed is the cache of that ad gets deleted ? How to handle his?

kiranrkg avatar Apr 08 '21 01:04 kiranrkg

If you want to hide the banner from all activities and clear the memory, call the code below: Appodeal.destroy(Appodeal.BANNER);

I’m talking about destroy function it’s not working on your package

kiranrkg avatar Apr 08 '21 17:04 kiranrkg

According to Appodeal's documentation the ads that are auto-cached are automatically freed from memory after they are used. As far as I know there's no way to cache the same ad type more than once. My plugin simply uses the Appodeal code, but I didn't change anything on how the cache works.

In any case, I might have some time to work on the implementation of the destroy function in the next couple of weeks, but you're welcome to open a PR also if you want things to move a little quicker 😃

vegidio avatar Apr 10 '21 05:04 vegidio

Please add support for smart banners and a method to destroy banner ads. How do I show different banners on different screens?

arunchaudharyweb avatar Sep 14 '21 18:09 arunchaudharyweb