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?
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.