I have an interesting problem I did not have to deal with so far.
We are showing in our apps a new image received from our server whenever the app opens. the image is saved to a predefined file name on the documents directory.
however, when the app is still suspended in memory and there is an image saved from previous days, than the app will not show the new image but the old one. this is despite deleting the old image file from the documents directory file system and saving the new one using the same file name before showing the image.
I don’t really understand how this could work since the old image file does not exist anymore. unless the app still hold in memory the old image texture and when we try to create a new image with the same file path it just links it back to the old handle in memory instead of re-creating the texture. if that is the case, how can I override this behavior?
Thanks