Hi everyone,
I’m facing a quite annoying issue on my app and I would like to ask your precious help. It is really appreciated and I would like to thanks in advance to anyone wants to help me.
The problem
In my app you can save some pictures directly on the device, no cloud services involved here.
The fact is, when a user saves some pictures and then he updates the app from testfligth or similar (without uninstalling) it happens that the pictures are not visibile anymore.
This happens only with ios.
Some implementation details
The way I save pictures into the device is basically based on a stored variable list that I initialize once like in the following pictures.
Then, each time the user add a pitcture the following happens (see that the variable “picture” is the output of the device camera or a picture taken from library).
What I have already verified
I used some log in order to understand if the update of the app deletes some stored variables, but it is not the case.
In the following I show the two logs taken before and after the app update but they look the same
See the file path just after the user took the pictures.
“[{“img_front”:“file:///var/mobile/Containers/Data/Application/F0B2FA01-4B88-4E3D-9C1E-EB2464D0416E/Library/Caches/ImagePicker/39855492-DCA7-467B-AB71-FC53E64823D6.jpg”,“img_back”:“file:///var/mobile/Containers/Data/Application/F0B2FA01-4B88-4E3D-9C1E-EB2464D0416E/Library/Caches/ImagePicker/FA39139E-3DFC-4C3A-9CF4-FE77BEF7F9D4.png”}, … ]];”
And then see the file path just after the user updated the app, they are the same.
“[{“img_front”:“file:///var/mobile/Containers/Data/Application/F0B2FA01-4B88-4E3D-9C1E-EB2464D0416E/Library/Caches/ImagePicker/39855492-DCA7-467B-AB71-FC53E64823D6.jpg”,“img_back”:“file:///var/mobile/Containers/Data/Application/F0B2FA01-4B88-4E3D-9C1E-EB2464D0416E/Library/Caches/ImagePicker/FA39139E-3DFC-4C3A-9CF4-FE77BEF7F9D4.png”},…]];”
I hope that someone can help.
Thank you,
Daniele