Quantcast
Viewing all articles
Browse latest Browse all 17065

Data on FileSystem.documentDirectory not persisting over app store updates in ios

I was working on a project that need some files to be downloaded into storage and later works offline . I am using Expo's Filesystem api to download the file and then saving the file in Expo FileSystem.documentDirectory

let directory = FileSystem.documentDirectory +'media/';await FileSystem.downloadAsync(imageurl,                        directory +'filename.jpg'                    )                        .then(({ uri }) => {                            console.log(uri,'uri of image')                        });

The problem is when i was updating app in itunesconnect the data is not persisting.


Viewing all articles
Browse latest Browse all 17065

Trending Articles