ios – Cloud Storage for Firebase bandwidth quota exceeded after downloading multiple images – what are the best practices?
Should I store the local structs and images in the iOS FileManager so I only download them once, when the app first runs?
Using a local cache like this is definitely one good way to reduce the total bandwidth use.
How will I update the local data should anything in either Firestore or Cloud Storage change?
That will be for you to engineer. In general, one way to do this would be for your process that updates the objects in storage to also update some metadata about the image, and store that in Firestore. Your app can query Firestore, for changes, then check to see if your locally cached files are up to date before downloading them again.
I thought about storing the images in a smaller size, but I really need them to be 600px by 400px in my app.
You can always increase the amount of JPG compression, which will also reduce the quality of the image. Thats a tradeoff youll have to experiment with to your preference.