Export ipa with files in document folder - ios

My ios app saves images and text files in the app document folder so that the user is able to use the app offline. To avoid that he has to load this data at the first start, I would like to export the ipa with all necessary images and text files stored in the documents folder.
Ho can I do that? Is this even possible?

Related

iOS Files App Registration with file types

I store video files in the Documents folder of my app. I need to present an option that enables users to copy video files from Documents folder to iOS Files app. I also want to automatically have a folder for my app in iOS files app (as seen in the screenshot).
I tried registering Document type "public.movie" (screenshot 2) but didn't help.
Wondering how to achieve it.

iOS: Include the resource(audio) files into the application folder of the app rather than adding into the bundle

Currently my resource(audio) files is included in the bundle. Due to this user is unable to delete the unwanted audio files to save the disk space on his phone. Please let me know how can I directly include the audio files into the Applications folder of app while submitting the build to AppStore and not in the bundle. Thereby user can delete the files which are not of his interest and re-download from the cloud backup hosted on S3 if needed.
The only way to accomplish this is to NOT have the audio files included in the initial app install.
Instead, your app could download the audio files from a hosting service... either download them all on first launch, or download each file as-needed.
You would then store the files on the device so they don't need to be downloaded again... and you could provide a UI to delete files the user no longer wants stored locally.

Save files in special folder

I created application (Swift 4.2), 1st user sends URLs to 2nd user:
http://www.website.com/test1.zip
http://www.website.com/test2.exe
http://www.website.com/test3.png
http://www.website.com/test4.mkv
Second user should download and save files in folder at his device.
How can I download files and save them in "Files" folder?
Can I create "MyApplication" folder automatically and save files
inside this folder?
I think what you want is a Document-Based App. In this case, you must add and set UISupportsDocumentBrowser key to YES in your Info.plist file, then ALL your folders and files in your App Document Folder will be exposed here. When you open Files app, your App's documents will be at On My iPhone -> YOUR_APPLICATION_NAME
Hope this helps.
First Question:
You can download them on your pc and then transmit them to your iPad with apps like iFiles, which can be installed from Appstore.
Second Question:
To download files directly and save in your own folder is not permitted on iPad for the intentional restrict of Apple.

How to download files to app from app folder without linking an account via Dropbox API?

How do you automatically download a file from Dropbox, say a .txt or .pdf file, from the app folder (Dropbox) programmatically without having the user link their account and do it manually? Is this even possible? The goal is to eventually display the file in the app.
Edit: I would like to clarify that the file would NOT be the user's. I am just trying to get my OWN file from the app's folder which is located under the developer's Dropbox AKA me.
Edit 2: I will be updating this file, which is why I'm storing it remotely on Dropbox. (to avoid having to repeatedly update the whole app) The purpose is to simply use my Dropbox as a database to retrieve this file from.

upload file to folder on device, filesharing ios

im using filesharing in my app, working fine, but I want now for organization to be able to upload files from itunes to app folder
the itunes lets me import a file "Add", but i cannot drag the file to the created folder in my file system or "Add" in my folder,
so how can i upload the images to the specified folder in the device?
or do I have to dynamically check for the content of the /documents/ content and move the file to the wanted folder??
thanks
You can only add files via iTunes to the documents directory. You can either create your own AFP or WebDAV server on the iPhone and connect to it like a network drive (you have to code the server yourself). Alternatively you can check for new items in the documents directory as you suggested yourself and move them to wherever you want. Bear in mind that if you move them from the documents directory you will not be able to access them through iTunes once moved. Why don't you just store them in the documents directory anyway?

Resources