I want my app to be able to copy files (images, videos, etc..) from other applications throughout iOS, after looking through apples documentation and some online sources I still haven't been able to get it to work. I have attached an image of what my info plist looks like.
here is the plist code for that section:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>All Files</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>public.data</string>
<string>public.content</string>
</array>
</dict>
</array>
Control Panel is still the main way to control what happens on your computer. Our first method uses it to quickly associate file types with programs. Open the Start menu, type “ Control Panel ” and then click on it. Now, navigate to Programs. Then, select Default Programs . Next, click on Associate a file type or protocol with a specific program.
Depending on the file type, you may only have one option to select. If you don’t see the program you want to use, select More apps in the selection window. Not all apps that feature in that list will be able to open the file but you can select them anyway.
If you plan to associate the file with an existing application, locate an application ProgID in the registry. For more information, see File Types. This topic discusses how applications can expose information about themselves necessary to enable certain scenarios.
Now, navigate to Programs. Then, select Default Programs . Next, click on Associate a file type or protocol with a specific program. Now, scroll down and select Choose default apps by file type at the bottom of the page.
Registering file types will help if you want iOS to open your app when someone clicks an email attachment with a file extension which you are claiming for your app.
But I think what you want is to be able to share a file from another app to your app. You need to create an app extension of type "Share".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With