How to enable file sharing for my app?
You just have to set UIFileSharingEnabled
(Application Supports iTunes file sharing
) key in the info plist of your app. Here's a link for the documentation. Scroll down to the file sharing support part.
In the past, it was also necessary to define CFBundleDisplayName
(Bundle Display Name
), if it wasn't already there. More details here.
Xcode - Enabling iTunes file sharing on my app but it doesn't appear in the list in iTunes?
After a couple of hours of hunting I discovered that for some reason my "Bundle Display Name" was blank.
This can be found by selecting the "top level App name" in Xcode's Project Navigator (the left pane with all the files) and then selecting "the app name under Targets" and then going to the Info tab.
I copied ${PRODUCT_NAME} from Bundle Name and pasted it under Bundle Display Name. I ran the app again and connected it to iTunes and now my app is the appropriate iTunes File Sharing list.
See a detailed answer here:
How to enable file sharing for my app?
How to enable file sharing in iPhone app using iPhone sdk
You should Enable UIFileSharingEnabled in the application plist file, Keep this value to YES
like this then your application can share data of your application documents
How to implement iTunes built-in App File Sharing feature
You want to add the UIFileSharingEnabled
key to your app's Info.plist
Sharing Files With The User
How to allow App Users to share files in-between each other (like share-contact)
There are a number of ways to do this, I strongly recommend using a web service to perform the communication between applications. You can use a REST API (examples on how to develop your own API here) so your users can upload the files, and other users can download these files onto their mobile device.
If you do not want (or do not have time) to develop your own REST API, you can sign up with Parse which offers several options for solving your needs (REST API, mobile SDK's, etc), with a very simple user interface. This way your information is not stored on your user's physical device, it is instead stored in a server. This enables sharing of information and/or files.
Itunes file sharing and Adding open in function support for apps in swift
- Add the
UIFileSharingEnabled
key to your app’s Info.plist file, and set the value of the key toYES
. - Put whatever files you want to share in your app’s Documents directory.
- When the device is plugged into the user’s computer, iTunes displays a File Sharing section in the Apps tab of the selected device.
- The user can add files to this directory or move files to the desktop.
To allow listing your app has a candidate to open mp3 add the mp3 file extension to the URL Types section in your project's Info plist property area.
Related Topics
Symbolicating Iphone App Crash Reports
How to Add Exception Breakpoint in Xcode
Swift - Json Error: the Data Couldn'T Be Read Because It Isn'T in the Correct Format
Redirect to Application If Installed, Otherwise to App Store
How to Associate File Types With an Iphone Application
How to Change Status Bar Text Color in Ios
How to Create Custom Calendar in React Native
How to Remove Constraints Programmatically That Is Added from Storyboard
Ios: How to Make a Shadow for Uiview on 4 Side (Top,Right,Bottom and Left)
Download Array of Images as Byte Array and Convert to Images
Firebase Custom Event Parameters Not Visible in Console
How to Prevent Tableview Section Head from Sticking While Scrolling
Swift Parse Json - the Data Couldn'T Be Read Because It Isn'T in the Correct Format