2

I'm using a native share to share an image from my app. I've removed unwanted options using excludedActivityTypes. Some apps like Linkedin (which is installed on my device) pops up on native sharing options. How can I remove these unwanted applications without turning off these apps manually?

2 Answers2

1

There is no way to do this in UIActivityViewController. Try to implement your own. Or look at existing projects.

rkyr
  • 3,131
  • 2
  • 23
  • 38
1

UIActivityController has an excludedActivityTypes property. In there you can set an array of NSStrings with the identifiers of the activities you want to disable.

You can get LinkedIn's identifier by setting the completionWithItemsHandler property on the controller, and logging the string that's passed to that block.

Class Reference

EmilioPelaez
  • 18,758
  • 6
  • 46
  • 50