How to register an app to handle .opml
file type? This is what I've tried adding to Info.plist
file
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>CFBundleTypeName</key>
<string>OPML</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.opml</string>
<string>org.opml.opml</string>
<string>net.multimarkdown.opml</string>
<string>com.apple.news.opml</string>
</array>
</dict>
</array>
With keys defined above when .opml
file is opened via "Open in ..." app does not show up in the list of apps that can handle this file type.
I've noticed that if public.data
is added in the LSItemContentTypes
array it does show the app in the "Open in..." list but app is shown for all other undesirable file types. Is there a specific content type that is missing?
You are declaring a file type, but that type is not a built-in known type (such as PDF), and you yourself are not exporting that type; therefore it is not seen by the runtime as publicly available to other apps.