Hello everyone,
I am a beginner using Kodular.
My app shows an image from an Airtable URL (stored in the “Notes” column).
What I want is:
When the app opens and internet is available:
Load the image from Airtable URL.
Show it in the app.
Save (cache) it locally.
When the app is offline:
Show the last cached image from local storage / TinyDB.
When I change the image URL in Airtable:
The app should automatically load the new image next time it opens.
Update the cache with the new image.
So the behavior should be:
Online → get new URL → show image → cache it
Offline → show cached image
If Airtable URL changes → app shows the new image and replaces the old cache
I am using:
Spreadsheet component (Airtable)
Dynamic Image
TinyDB / File
But my current blocks cause black screen / “App is not responding” or do not update correctly.
Could anyone please show the correct block logic or example project for this use case?
Thank you very much.
Hi dear,
There are several extensions that handle image caching,
The extension will handle on its own whether to download the image or not, depending on whether it’s already present in the cache.
take a look at this topic.
(I also created a project without extensions using TinyDB)
Basically, when URL change, before downloading the data you clear the cache so the updated images are downloaded.
It would be helpful if you showed us your blocks so we can understand what’s causing the app to crash.
If you are not using Airtable’s free plan then it’s good but if you’re not then you should know that Airtable has implemented the restrictions, I think only 1000 calls allowed in a month.
2 Likes