8

I'm creating a messaging app and I would like to enable other apps to share text to my app via the share menu option.

How do I get my app listed in there?

This is the menu I would like to get listed in:
image

Gabriel.Massana
  • 8,165
  • 6
  • 62
  • 81
Matt
  • 2,981
  • 5
  • 23
  • 33

3 Answers3

20

In iOS 8, Apple has now enabled a way for you to add your application to a user's Share Sheet as one of many features of Extensibility, which aims to make your app available to the user even when closed.

enter image description here

You can read a lot more about share extensions here, or go straight to Apple's pre-release documentation to dive into the code.


Update: Above link of Apple documentation is not working, check here App Extension Programming Guide: Share

norman784
  • 2,201
  • 3
  • 24
  • 31
Ruben Martinez Jr.
  • 3,199
  • 5
  • 42
  • 76
0

You can do this by adding a few entries into your apps info.plist.

Here's a post that should answer this for you. slashdot post

also here another link

Community
  • 1
  • 1
Joel
  • 1,309
  • 2
  • 10
  • 20
-1

You can't automatically be added to the UIActivityViewController in other apps. The only things that appear on that "share menu" are a few predefined apps that Apple has added support for, as well as any other app specific activities an app decides to add.

You can setup your app to appear in a list of apps for opening a file but that is not the same as what you are asking for here.

rmaddy
  • 314,917
  • 42
  • 532
  • 579