Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Cache expiry #26

Open
kiranrkg opened this issue Apr 8, 2021 · 3 comments
Open

Cache expiry #26

kiranrkg opened this issue Apr 8, 2021 · 3 comments

Comments

@kiranrkg
Copy link

kiranrkg commented Apr 8, 2021

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
Copy link
Author

kiranrkg commented Apr 8, 2021

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

@vegidio
Copy link
Owner

vegidio commented Apr 10, 2021

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 😃

@arunchaudharyweb
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants