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

Exclude the cache from iCloud backup. #113

Open
laserjay opened this issue Aug 3, 2023 · 5 comments
Open

Exclude the cache from iCloud backup. #113

laserjay opened this issue Aug 3, 2023 · 5 comments

Comments

@laserjay
Copy link

laserjay commented Aug 3, 2023

I suspect XKCDY is including Cache Data within the iCloud Backup.

Therefore

  • it uses a relatively large amount of iCloud data, which is quite limited with the free option (5GB)
  • hence it creates more (mobile) traffic
  • according to Apple Developer guidelines, reproduceable data shouldn't be included in the iCloud device Backup

Could you please consider changing that?

As I've briefly researched, there are quite a few possibilities, like

What you could store though are favourites/liked comic strips, preferences and such. Then I suspect the backup size could shrink to Kilobytes or single digit Megabytes, instead of hundreds of Megabytes as it is right now.

@codetheweb
Copy link
Member

How much is a large amount? It's using 75MB for me which is maybe slightly high, but Amazon uses around the same amount (as does WeChat, which I've never actually used).

Based on what I've read I'm not entirely convinced that cached images are being included. If you're able to download your backup and confirm that images are included I'm happy to debug further.

I think Realm (the database library) tends to create large blobs.

@laserjay
Copy link
Author

laserjay commented Aug 4, 2023

My iPhone device backup is ~ 1GB in total, of which XKCDY takes up about 300 MB. Another app backing up cache data (offline maps) is approx. the same amount, so two apps of approx. 80 account for ~50% of backup data. All others seem to backup settings and smaller chunks only.

Do you have an idea how I could download my device backup to investigate further? As far as I'm aware, it's not easily visible within the iCloud folder structure. Only thing I can do on my Mac and iPhone when browsing the device backups from settings is to delete it and view the data amounts sorted by app.

@bbb651
Copy link

bbb651 commented Jun 12, 2024

The app does indeed take up ~350MB in the worst case (I intentionally scrolled through all comics to make them available offline, would be nice to have as a feature):

image

But I think you're wrong about it being stored in iCloud backups, I've done a backup since and it barely takes up save at all:

image

@laserjay
Copy link
Author

Then I suppose something is off with my installation. I might have to delete the local and iCloud data and re-download it from the App Store – even though that's going to delete my favourited comics.

In the meantime since I reported the issue I got another iPhone, therefore there isn't as much local data as previously stated:

Screenshot 2024-06-12 at 19 55 54

However, the iCloud backup remains at almost 300 MB and is still the largest backed up app:

Screenshot 2024-06-12 at 19 57 14

@laserjay
Copy link
Author

I was able to reproduce the issue with a fresh install:

  1. Delete the app from the iPhone and iCloud backup.
  2. Re-download
  3. Within a week of casual use, the app is ~50 MB
  4. iCloud backup version is ~85 MB

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