SFSafariViewController doesn't call -prepareWithActivityItems for custom activities

Originator:futuretap
Number:rdar://24138390 Date Originated:12-Jan-2016 12:07 AM
Status:Resolved Resolved:iOS 11 GM (15A372)
Product:iOS SDK Product Version:9.2
Classification:UI/Usability Reproducible:Always
 
When SFSafariViewControllerDelegate provides custom activities using 

-safariViewController:activityItemsForURL:title:

those custom UIActivity objects aren't sent -prepareWithActivityItems: when the user selects the activity.


Since the usual (and documented) pattern is to implement -prepareWithActivityItems: to retrieve the actual activity item, such custom activities do nothing when called from SFSafariViewController.


A workaround is to add a `URL` property or custom `-initWithURL:`  method to directly initialize the UIActivity object with the URL from -`-safariViewController:activityItemsForURL:title:`. However, this breaks the documented pattern.

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!