Skip to content

Instantly share code, notes, and snippets.

@robksawyer
Last active March 7, 2024 09:10
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save robksawyer/544efe1c4dc7e4ce2fb9d3b589dde5a0 to your computer and use it in GitHub Desktop.
Save robksawyer/544efe1c4dc7e4ce2fb9d3b589dde5a0 to your computer and use it in GitHub Desktop.
A list of UIActivity.ActivityType for modern apps.
let excludedActivityTypes = [
UIActivity.ActivityType.print,
UIActivity.ActivityType.openInIBooks,
UIActivity.ActivityType.copyToPasteboard,
UIActivity.ActivityType.addToReadingList,
UIActivity.ActivityType.assignToContact,
UIActivity.ActivityType.copyToPasteboard,
UIActivity.ActivityType.mail,
UIActivity.ActivityType.markupAsPDF,
UIActivity.ActivityType.postToFacebook,
UIActivity.ActivityType.postToWeibo,
UIActivity.ActivityType.postToVimeo,
UIActivity.ActivityType.postToFlickr,
UIActivity.ActivityType.postToTwitter,
UIActivity.ActivityType.postToTencentWeibo,
UIActivity.ActivityType.saveToCameraRoll,
UIActivity.ActivityType.message,
UIActivity.ActivityType(rawValue: "com.apple.CloudDocsUI.AddToiCloudDrive"),
UIActivity.ActivityType(rawValue: "com.apple.mobilenotes.SharingExtension"),
UIActivity.ActivityType(rawValue: "com.apple.reminders.RemindersEditorExtension"),
UIActivity.ActivityType(rawValue: "com.apple.mobilenotes.SharingExtension"),
UIActivity.ActivityType(rawValue: "com.amazon.Lassen.SendToKindleExtension"),
UIActivity.ActivityType(rawValue: "com.google.chrome.ios.ShareExtension"),
UIActivity.ActivityType(rawValue: "com.google.Drive.ShareExtension"),
UIActivity.ActivityType(rawValue: "com.google.Gmail.ShareExtension"),
UIActivity.ActivityType(rawValue: "com.google.inbox.ShareExtension"),
UIActivity.ActivityType(rawValue: "com.google.hangouts.ShareExtension"),
UIActivity.ActivityType(rawValue: "com.iwilab.KakaoTalk.Share"),
UIActivity.ActivityType(rawValue: "com.hammerandchisel.discord.Share"),
UIActivity.ActivityType(rawValue: "com.facebook.Messenger.ShareExtension"),
UIActivity.ActivityType(rawValue: "com.nhncorp.NaverSearch.ShareExtension"),
UIActivity.ActivityType(rawValue: "com.linkedin.LinkedIn.ShareExtension"),
UIActivity.ActivityType(rawValue: "net.whatsapp.WhatsApp.ShareExtension"),
UIActivity.ActivityType(rawValue: "com.tinyspeck.chatlyio.share"), // Slack!
UIActivity.ActivityType(rawValue: "ph.telegra.Telegraph.Share"),
UIActivity.ActivityType(rawValue: "com.toyopagroup.picaboo.share"), // Snapchat!
UIActivity.ActivityType(rawValue: "com.fogcreek.trello.trelloshare"),
UIActivity.ActivityType(rawValue: "com.hammerandchisel.discord.Share"),
UIActivity.ActivityType(rawValue: "com.riffsy.RiffsyKeyboard.RiffsyShareExtension"), //GIF Keyboard by Tenor
UIActivity.ActivityType(rawValue: "com.ifttt.ifttt.share"),
UIActivity.ActivityType(rawValue: "com.getdropbox.Dropbox.ActionExtension"),
UIActivity.ActivityType(rawValue: "wefwef.YammerShare"),
UIActivity.ActivityType(rawValue: "pinterest.ShareExtension"),
UIActivity.ActivityType(rawValue: "pinterest.ActionExtension"),
UIActivity.ActivityType(rawValue: "us.zoom.videomeetings.Extension"),
]
@gbogarinb
Copy link

It's not working for Discord and Gmail, why could that be.

@WoutervdVenn
Copy link

I'm having issues excluding Facebook Messenger. Any ideas?

@claude31
Copy link

I got the following comment from Apple framework engineer: Apps can only exclude the built-in system activity types (the constants listed in the UIActivity.ActivityType struct), and are not allowed to exclude extension activities that come from other apps.

@Soul-Clinic
Copy link

How can I do in React Native? 🥹

@zhouhao27
Copy link

How about Pages, Keynote and Numbers?

@xsleonard
Copy link

For "Save To Files": UIActivity.ActivityType(rawValue: "com.apple.DocumentManagerUICore.SaveToFiles")

@mrwatts88
Copy link

How can I do in React Native? 🥹

        Share.share(
            {
                message: 'Share me',
            },
            {
                excludedActivityTypes: ['com.apple.UIKit.activity.Message'],
            },
        );

@MonikaHurekatek
Copy link

Not Working iOS 16, iOS 17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment