Rn-fetch-blob: iOS:App Store

Created on 8 May 2018  Â·  2Comments  Â·  Source: joltup/rn-fetch-blob

After updating and installing from the App Store, the pictures downloaded to the local area are missing and cannot be displayed.

Most helpful comment

Each time you update your iOS app, either from the app store or even reinstalling locally after a native code update, the names of the local file directories change. This means that if you store the full path to the file, that path will be incorrect after an update. You need to always dynamically lookup the name of the file directories on the device using RNFetchBlob.fs.dirs.DocumentDir (or whichever directory you happen to be using). It's also worth mentioning that some directories such as the cache directory are only intended for temporary file storage.

All 2 comments

@songxiaoliang can you provide some code so we can look into this?

Also, have you tried running a release build not from the App Store on your device?

Each time you update your iOS app, either from the app store or even reinstalling locally after a native code update, the names of the local file directories change. This means that if you store the full path to the file, that path will be incorrect after an update. You need to always dynamically lookup the name of the file directories on the device using RNFetchBlob.fs.dirs.DocumentDir (or whichever directory you happen to be using). It's also worth mentioning that some directories such as the cache directory are only intended for temporary file storage.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wamry picture wamry  Â·  16Comments

Evangelione picture Evangelione  Â·  16Comments

TheWirv picture TheWirv  Â·  13Comments

a-nice-username picture a-nice-username  Â·  12Comments

fgagneten picture fgagneten  Â·  23Comments