Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to receive sharing content in my app?

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

like image 316
Alberto Segura Avatar asked Dec 22 '17 11:12

Alberto Segura


People also ask

How do I enable sharing with me?

"Shared with You" is found under the "Listen Now" tab. In the Safari browser, open a new tab. In the new tab, you'll find "Shared with You" below "Favorites."

How do I turn on content sharing on my iPhone?

Go to Settings > Users and Accounts > Home Sharing. Select Turn on Home Sharing. Sign in with your Apple ID. Use the same Apple ID for every computer or device on your Home Sharing network.

How do I see what apps are sharing my data?

On Android, go to Settings and then Apps and Notifications. Click on each app and then select Permissions to see what that app is accessing.


2 Answers

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.

like image 137
Alberto Segura Avatar answered Oct 04 '22 22:10

Alberto Segura


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.

like image 30
Guilherme Rambo Avatar answered Oct 04 '22 23:10

Guilherme Rambo