UIActivityViewController ignores third-party sharing extensions included in excludedActivityTypes

Originator:ricardopereira.eu
Number:rdar://42657174 Date Originated:27-Jul-2018 12:10 PM
Status:Closed Resolved:
Product:iOS + SDK Product Version:11.4.1
Classification:Enhancement Reproducible:Always
 
Summary:
UIActivityViewController does not respect third-party activity types that are included in the excludedActivityTypes property.  For example, I may want to block users from sharing via a specific extension (i.e., Tumblr) for a valid reason (i.e., I am the Tumblr app and it doesn't make sense for me to share to myself) or I want to prevent a user from sharing potentially his or her private data with a social network but allow him or her to share to a productivity app like Dropbox or Evernote.

Steps to Reproduce:
1. Download the Tumblr app for iOS to a device (v3.7.5 at this time)
2. Open the attached ExcludedShareExtensions project
3. Build and run the project to the same device from #1
4. In the Share sheet that appears, tap more More and flip the switch for Tumblr to on
5. Observe that the Tumblr icon appears as a sharing option even though its activity type was included in excludedActivityTypes.

Expected Results:
The Tumblr sharing option should not be visible in the activity view controller.

Actual Results:
The Tumblr option is visible in the activity view controller even though it was specifically excluded.

Version:
11.4.1

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!