Would really appreciate if anyone can share some insights with regarding to why following behavior happens:
Repro steps:
- make an app (call it v0)
- in v0 app, use image picker (provided by expo) to pick an image and store the image URI locally.
- update the app and publish it through Test Flight, now the app becomes v1.
- open the app, the URI no longer works. I couldn’t check if the file still exists on my device btw, it does not show up in XCode devices → installed apps section for some reason.
Basically for the images I pick from Expo image picker, the URL would expire every time I update the app to a new version.
It also happens if I just use Expo to open the project (without publishing to TestFlight/rebuild binary etc), if I upgrade Expo client through app store.
My understanding is that when picking an image from expo, it makes an copy of the image to some local cache and then return the URI from there. Is it possible that the cache gets automatically cleared when version is updated? Although if that’s the behavior I would expect it to be documented somewhere.
Otherwise, am I missing something obvious here?