15

I would like to add my app to the UIActivityViewController in other apps. How can I add/register my app to allow other apps to send content to my app? How should I receive this content?

enter image description here

Dávid Pásztor
  • 51,403
  • 9
  • 85
  • 116
Alberto Segura
  • 437
  • 4
  • 9

2 Answers2

11

Thank you very much to all of you that answered to my question.

With your answers I realized I have to use a Shared Extension. I have found a really nice video that explains how I have to handle the received information: https://www.youtube.com/watch?v=TBC2m8BbcCE. Maybe it could be useful for somewhere in the future.

Alberto Segura
  • 437
  • 4
  • 9
6

In your Xcode project, go to file > new > target and select "Share Extension".

Your Share Extension is the extension that will provide an option in the share sheet inside other apps.

To learn more about share extensions, check out Apple's guide.

Guilherme Rambo
  • 2,018
  • 17
  • 19