UIActivityViewController: Exclude non-Apple extensions?

I would like to prevent my application from sharing its content with some other applications using the extension mechanism. For example, I want the user to be able to share a link, but not with the Gmail application.

My understanding of the documentary is as follows:

// vieController previously initialised like this: UIActivityViewController(activityItems: [provider], applicationActivities: nil) viewController.excludedActivityTypes = ["com.google.Gmail.ShareExtension"] 

This does not work. Am I missing something? Are activity types not related to Apple not working with this mechanism?

+5
ios uiactivityviewcontroller sharing ios-extensions
Sep 11 '15 at 11:57
source share
1 answer

Apparently, since iOS 8.1 is no longer possible (either an error or the expected behavior), see http://johnszumski.com/blog/excluding-third-party-apps-from-ios-8-share-sheet

+2
Sep 12 '16 at
source share



All Articles