I want to show the my app to the user when user use the open in function from the other app.
Here is my code.
<array>
<dict>
<key>CFBundleTypeName</key>
<string>Image File</string>
<key>LSHandlerRank</key>
<string>Default</string>
<key>LSItemContentTypes</key>
<array>
<string>public.png</string>
<string>public.jpg</string>
</array>
</dict>
</array>
What is wrong with that?
ScreeShot
Related
My app can already receive PDFs, PNG, JPGs from other apps via CFBundleDocumetTypes - Definitions. This means, once you chose the share-Button of other apps, my app appears in the list. So far so good. Opening a saved screenshot on an iPad also presents a symbol of my app to put it to.
But if I take a screenshot and want to send it directly, my app does not appear as possible receiver. I first have to save it somewhere first. How can I tell iOS to show my app as receiver for just-made-screenshots, just out of the editing view of the screenshot-feature?
When I send it as mail-attachment, it shows up as a .jpeg. Here is an exempt of my info.plist:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>PDF</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>com.adobe.pdf</string>
</array>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>PNG</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.png</string>
</array>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>JPG</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.jpeg</string>
<string>public.jpg</string>
</array>
</dict>
</array>
I have an iOS app I've already associated with ZIP files like so:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>ZIP Archive</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleTypeExtensions</key>
<array>
<string>zip</string>
</array>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>application/zip</string>
<string>application/x-zip</string>
<string>application/x-zip-compressed</string>
</array>
<key>LSItemContentTypes</key>
<array>
<string>com.pkware.zip-archive</string>
</array>
</dict>
</array>
And this works as expected. When a user clicks a ZIP to download in Safari, my app comes up as an app to "Open with".
I'd like the same functionality for MP3. I've tried the following to no avail (app doesn't come up in the list). I've also tried subtle variations:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFile</key>
<string>beer-mug.png</string>
<key>CFBundleTypeExtensions</key>
<array>
<string></string>
</array>
<key>LSItemContentTypes</key>
<array>
<string>public.mp3</string>
</array>
<key>CFBundleTypeName</key>
<string>public.audio</string>
<key>LSHandlerRank</key>
<string>Owner</string>
</dict>
</array>
This image sums up what I'm going for:
Are MP3 files "protected" or something? I need a way for users to be able to download/access MP3 files in my iOS app (use as sound effects).
Surprisingly searching is coming up empty. Ideally someone with this MP3 functionality in their app posting their info.plist would be super helpful.
Why is your setup for mp3 so different than your setup for zip? The following fixes should work:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>ZIP Archive</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleTypeExtensions</key>
<array>
<string>zip</string>
</array>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>application/zip</string>
<string>application/x-zip</string>
<string>application/x-zip-compressed</string>
</array>
<key>LSItemContentTypes</key>
<array>
<string>com.pkware.zip-archive</string>
</array>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>MP3</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleTypeExtensions</key>
<array>
<string>mp3</string>
</array>
<key>CFBundleTypeMIMETypes</key>
<array>
<string>audio/mpeg</string>
<string>audio/mpeg3</string>
<string>audio/mpg</string>
<string>audio/mp3</string>
</array>
<key>LSItemContentTypes</key>
<array>
<string>public.mp3</string>
</array>
</dict>
</array>
When we view a photo, pdf, or any other files on iOS, it is possible to open the file in another app by clicking on "Open with...". And I would like to have my app in the list, for PDF files, PNG and JPEG.
I have tried everything I found on Google, and here is my file info.plist :
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>CFBundleTypeName</key>
<string>PDF</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>com.adobe.pdf</string>
</array>
</dict>
<dict>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>CFBundleTypeName</key>
<string>PNG</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>public.png</string>
</array>
</dict>
<dict>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>CFBundleTypeName</key>
<string>JPG</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>public.jpg</string>
</array>
</dict>
</array>
I have tried to change it with all I found on Internet, but my app never appears in the list.
Is there something else to do than modifying the file info.plist ?
Actually, I manage to open PDF file in my App only in SAFARI ! But it's not as I want :
When I view a PDF File in safari, I can see on the top "Open with", but on all other apps when I click on the button Open with, I can't see my app.
What I would like is this :
Thank you very much for your help :D
Regards
I want my app to be in 'Open in' options for image.
I have used this code in my Info.plist
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>Image</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.image</string>
</array>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>PNG image</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.png</string>
</array>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>JPEG image</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.jpeg</string>
</array>
</dict>
</array>
In the application 'Inbox', on sharing an image, i can see my app 'Quotle' :
But in Apple's application 'Photo', i don't see my app :
What can i do to see my app in sharing menu into application 'Photo'?
In order to show your app in Photo's Share to list, you need to add a new target of Share Extension into your project, please refer the document for more info on how to add the Share Extension.
Hi I would like to register to support image files in my app; so when user tap on the action button in iPhone's photo app, my app icon would show up within the "open with ..." menu. I have the following in my info.plist
<dict>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.png</string>
</array>
</dict>
<dict>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.jpeg</string>
</array>
</dict>
but can't get it to show up in that menu. is this the correct way? please help thank you!!
Try like this it works for me
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>png</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.png</string>
</array>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>jpeg</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.jpeg</string>
</array>
</dict>
<dict>
<key>CFBundleTypeName</key>
<string>tiff</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.tiff</string>
</array>
</dict>
</array>
more information in this link
http://lists.apple.com/archives/cocoa-dev/2006/Jun/msg00747.html