Where is the cached data with HTML5 manifest for iOS - ios

In the post HTML5 offline webapps: a practical example we knew that there are 3 different storage of cached files.
My question is:
Where is the cached files with manifest in iOS app ?
I used iPhone Explorer to find such files by searching all directories, but can not find any.

Related

iOS Share PDF from Adobe Reader

I'm newer to iOS development and I find the file system to be difficult to work with. I've got many cases implemented in my app to share pdfs from browsers and the files app, but when i try to share a pdf from adobe the shared url to the resource looks like:
file:///private/var/mobile/Containers/Data/Application/EB6B8570-6422-49D8-BCBD-C68B9CBCF3C9/tmp/BBTempFileManager/sharedcopies/C2FB25ED-1414-49F0-8953-FFF3A4F6C76C/Sky.pdf
I have a shared container set up that I can already successfully read and write to during other scenarios. Any ideas why the system believes the file does not exist in this location? It appears maybe I just don't have access? What entitlements/permissions should be set up to explicitly allow for this?

Working with custom user files

I'm currently studying swift and came up with such a question:
What are best practices to work with custom user files like .pdf, .doc?
For instance, I have application, that loads different files from server like .pdf, .ppt, .zip and so on, how to present them inside my app?
While googling I came up with solutions mainly for images, but nothing particular for other file types.
For now, what I have is - downloading files from server using Alamofire and saving them to documents directory.
Could anyone please recommend how to present this files inside my app after I saved them?
Possible solution that comes to my mind is web view, but what about zip? Is there some kind of universal solution? I know that there is Files App in iOS 11, but what about iOS 10?
Many thanks for your attention!

ionic 2 / cordova read images from Documents directory iOS

My app downloads images from an external resource to the Documents directory using FileTrasnfer.
Now, in one of the pages of my app I'm supposed to display those images.
The paths I used for the images is the exact path they were downloaded to,
then I don't understand why the images are not displayed, seems like there is no access to the files.
How can I access files in the Documents directory?
Anyone?

Caching All Images of a folder using html 5

I am creating an html 5 offline web application and i want to load all images from a specified folder in the server to the browser cache using html 5 cache manifest file before the first page loads.So that after the first page loads,if the internet connection goes,i can see the web application.I have searched google for an answer and it shows me to list all images in the server folder one by one in the manifest file.But that will not be possible because the website has an admin panel,using that we can upload more images.So i should have to make the cache mainifest file with some thing like this
host/images/*
But while googling,I can understand that that is not possible.
Please help me.
Finally i got an answer for my problem.I can understand that it is not possible to use html5 cachemanifest for phonegap applications.I just had a sample build in which all images are listed in the cache manifest file and nothing was cached as i expected.Then i understand that for using cache manifest,The page i am using the images,the images and the cache manifest file should be in the same domain.So that is not possible.Then i find that i can cache things in the DOM.

IOS remove downloaded file in app

I developed an Ipad app which download different kind of files, but after a week or some days the downloaded files are removed and the app that open the file can find it anymore.
Could anybody help me, Where should I save downloaded files in my app to avoid that the file came automatically deleted?. IOS usually remove downloaded files after certain time?.
I already read this apple documentation
I know that maybe is not something complicated but I can't figure out why the file is removed If anybody can help me I'll appreciate that.
Put data cache files in the /Library/Caches
directory. Examples of files you should put in this directory include
(but are not limited to) database cache files and downloadable
content, such as that used by magazine, newspaper, and map apps. Your
app should be able to gracefully handle situations where cached data
is deleted by the system to free up disk space.
Most probably you are using caches/temp directory which the system can clear contents of in case of low space. To avoid deletion use Documents Directory.
If you are already storing in documents directory, then the file can appear missing if you are storing its hardcoded path , which can change during app update. Try storing relative path and log the contents of your documents directory to see what files exist.
save the files in your local sqlite db, data core or if you can serialize them with the standard user defaults

Resources