Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User data size growing at every app launch #19

Open
D-Melis opened this issue Dec 2, 2021 · 2 comments
Open

User data size growing at every app launch #19

D-Melis opened this issue Dec 2, 2021 · 2 comments

Comments

@D-Melis
Copy link

D-Melis commented Dec 2, 2021

Hi, we are using AdForm on our app since 2017, so using different versions of your SDK and different versions of the Android OS.
Our customers are reporting feedbacks for an unusual increase of user data size and we started investigating about it. Now we are using your SDK version 2.5.0 , and we performed some investigations on Android 10 and 11.
We noticed that more or less at every app launch, when we call the AdformTrackingSdk.startTracking function, the SDK creates a directory called app_webview_{id} inside the dataDir and another one called webview_{id} inside the cacheDir (with the same {id} suffix).
The sum of the sizes of the two directories is about 5MB, that if multiplied for the app launches, can become a huge size in few time.
To remove them is not enought to clear the cache because the bigger of the two directories is not inside the cache dir, so is needed to clear user data, but losing also all the other useful data used by our app.
Our question is: is there a way to solve this big data leak?

Thank you.

@nochill-lp
Copy link

Hi, @D-Melis I had the same issue with SDK version 2.5.0, I had inserted a custom logic at startup to delete recursively all folders named webview_{id}.

I tried version 2.5.2 and it seems to fix the problem by naming the folder like this webview_{applicationId}. every time the app starts up it doesn't create a new folder but it replace content in the webview_{applicationId} folder.

Will be great to add the delete custom logic to help with the migration from version 2.5.0 to newest one.

By the way could you explain for what this files are needed? Are they important for the SDK?

@OndraBasler
Copy link

Hello, we have the same problem with growing size of the app. I investigated it a bit with respect to this issue.

On the version 2.5.5, the app creates a new folder app_webview_{package_name}adform_tracking{hash}. That has been done in 2.5.4 according this comment.

I tried the version 2.5.3 and app creates just one folder app_webview_{package_name}_adform_tracking.

As far as I understand it you added this hash to folders to fix the crashes, but you caused the size growth again. Could you provide a way to mitigate both of these issues?

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

No branches or pull requests

3 participants