Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

registering file types supported by an application to open files from other apps

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.

enter image description here

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>
like image 566
Omar Eyad Abubaker Avatar asked Jun 08 '16 22:06

Omar Eyad Abubaker


People also ask

How to associate file types with programs in Windows 10?

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.

How do I select more apps to open a file?

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.

How do I associate a file with an existing application?

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.

How to set default apps by file type in Windows 10?

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.


1 Answers

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".

like image 157
Brett Donald Avatar answered Sep 30 '22 16:09

Brett Donald