AppLovin / AppLovin-MAX-SDK-iOS

Other
91 stars 73 forks source link

The size of the "documents and data" app is continuously increasing #260

Open Francesco-FL opened 1 year ago

Francesco-FL commented 1 year ago

MAX SDK Version

11.11.3

Device/Platform Info

iPhone 6S, iOS 15.7.9

Current Behavior

I state that I use the google_mobile_ads flutter package with AppLovin mediation, and I state that AppLovin ads are displayed correctly.

I use the app for the first time, then I close it. I check the space occupied by the app and it shows 5.9 Mb of "Documents and data".

I reopen the app and use it, then I close it and check again: the size of "Documents and data" has increased to 21.3 Mb

I do the same thing several times and it keeps increasing: 30.7Mb, 41.3Mb, etc..

To verify who is responsible for the increases I checked within "Documents and data" as explained by https://developer.apple.com/forums/thread/21660 I saved the "Documents and data" of the app used after 1 time, 2 times and 3 times, all the increases seem to be AppLovin content: in the library/caches/al folder the content goes from 21kb to 5.9mb to 23.3mb, in the temp/al folder it goes from 4.2mb to 19mb to 40mb. I also believe there are a couple more text files in the other folders that are space increases caused by AppLovin, although smaller than what was detected by the folders I mentioned. It seems as if you save every uploaded video, without then deleting it from memory when it is no longer needed, it is left there and over time the contents pile up and considerably increase the weight of the app.

Expected Behavior

I expect that the weight of the app does not increase, and that the plugin deletes resources when it no longer needs them

How to Reproduce

I use a Flutter project with google_mobile_ads and AppLovin as mediation. Then I added the AppLovin adapter into the podfile.

Additional Info

1 caches 2 caches 3 caches 1 temp 2 temp 3 temp
github-actions[bot] commented 2 days ago

This issue is stale because it has been open for 30 days with no activity.