How can I make my app appear in UIActivityViewController for text?

hpique

I would like my app to appear in the UIActivityViewController for text, in other apps. For example, when sharing from the Notes app as shown below.

enter image description here

Adding the following to the Info.plist didn't produce any visible results (in Notes, Evernote and Simplenote):

<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeIconFiles</key>
        <array>
            <string>icon-text-57.png</string>
            <string>icon-text-72.png</string>
            <string>icon-text-114.png</string>
        </array>
        <key>CFBundleTypeName</key>
        <string>Text</string>
        <key>LSHandlerRank</key>
        <string>Alternate</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>public.text</string>
            <string>public.plain-text</string>
            <string>public.utf8-plain-text</string>
            <string>public.utf16-external-plain-​text</string>
            <string>public.utf16-plain-text</string>
            <string>public.rtf</string>
        </array>
    </dict>
</array>

Is this possible? How?

Jack

Short answer: you can't.

Currently, you cannot add your app into other UIActivityViewControllers, unless you create your own UTI and the app ( Notes, Evernote and Simplenote) add code into their app to show yours.

What you are likely referring to, though, is the UIDocumentInteractionController, which is different, and there you CAN add your app, and I believe you are doing that correctly.

The things you are trying are all UIActivityViewControllers so no matter how hard you try, your app will not show up there.

Quick note to add: A good way to distinguish between is UIActivityViewControllers and a UIDocumentInteractionController is to see if "Dropbox" comes up in it. From my experience the Dropbox app has a "catch-all" UTI and can take any file so it usually comes up in nearly all UIDocumentInteractionController's. Of course, you'll need to have the app installed

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How can I make a waiting icon appear in the middle of my page with twitter bootstrap 3?

From Dev

How can I make an icon appear next to my title in the <title> tag?

From Dev

How can i make my app appear on tablets

From Dev

How can I make my android app work online?

From Dev

How can I make my MsgBox Appear if the Equip_No is not equal to the value in the Equip_no Textbox?

From Dev

How do I make my app appear in app chooser?

From Dev

How can I make my navbar appear on every page in my rails app?

From Dev

Can't make my app appear in the chooser Android BROWSABLE

From Dev

How can I make my output appear all on one line with no spaces?

From Dev

How do I make my menu appear on click with css

From Dev

how can i condense my XML and Java code to make my app run smoother

From Dev

How can I make a back button appear only if the user navigated to the page from my website?

From Dev

How can I make an icon appear next to my title in the <title> tag?

From Dev

How can I make my MsgBox Appear if the Equip_No is not equal to the value in the Equip_no Textbox?

From Dev

How can i use the visibility attribute in css to make my submenu appear and reappear?

From Dev

How can I find the cause of crash? My app doesn't appear in crashlog

From Dev

How can I make my OS appear as if it is running virtualized?

From Dev

Can't make my app appear in the chooser Android BROWSABLE

From Dev

How can I make text appear when hovering a picture that has already the hovering for transform?

From Dev

How do I write a swift array that can make the same UIImage appear for all my dynamic cells?

From Dev

How do I get my app to appear in the Applications list?

From Dev

How can I make my text be vertically aligned within a DIV?

From Dev

How can I make my JS script calls in Magento appear on one line?

From Dev

how can i condense my XML and Java code to make my app run smoother

From Dev

How can I make OCR recognize my documents' text better?

From Dev

TkInter: how can I make objects appear on my second window rather than the first?

From Dev

How can I make my navbar appear at a certain section?

From Dev

How can i make my .desktop app global?

From Dev

How to make my App appear on my Android Device?

Related Related

  1. 1

    How can I make a waiting icon appear in the middle of my page with twitter bootstrap 3?

  2. 2

    How can I make an icon appear next to my title in the <title> tag?

  3. 3

    How can i make my app appear on tablets

  4. 4

    How can I make my android app work online?

  5. 5

    How can I make my MsgBox Appear if the Equip_No is not equal to the value in the Equip_no Textbox?

  6. 6

    How do I make my app appear in app chooser?

  7. 7

    How can I make my navbar appear on every page in my rails app?

  8. 8

    Can't make my app appear in the chooser Android BROWSABLE

  9. 9

    How can I make my output appear all on one line with no spaces?

  10. 10

    How do I make my menu appear on click with css

  11. 11

    how can i condense my XML and Java code to make my app run smoother

  12. 12

    How can I make a back button appear only if the user navigated to the page from my website?

  13. 13

    How can I make an icon appear next to my title in the <title> tag?

  14. 14

    How can I make my MsgBox Appear if the Equip_No is not equal to the value in the Equip_no Textbox?

  15. 15

    How can i use the visibility attribute in css to make my submenu appear and reappear?

  16. 16

    How can I find the cause of crash? My app doesn't appear in crashlog

  17. 17

    How can I make my OS appear as if it is running virtualized?

  18. 18

    Can't make my app appear in the chooser Android BROWSABLE

  19. 19

    How can I make text appear when hovering a picture that has already the hovering for transform?

  20. 20

    How do I write a swift array that can make the same UIImage appear for all my dynamic cells?

  21. 21

    How do I get my app to appear in the Applications list?

  22. 22

    How can I make my text be vertically aligned within a DIV?

  23. 23

    How can I make my JS script calls in Magento appear on one line?

  24. 24

    how can i condense my XML and Java code to make my app run smoother

  25. 25

    How can I make OCR recognize my documents' text better?

  26. 26

    TkInter: how can I make objects appear on my second window rather than the first?

  27. 27

    How can I make my navbar appear at a certain section?

  28. 28

    How can i make my .desktop app global?

  29. 29

    How to make my App appear on my Android Device?

HotTag

Archive