UIActivityViewController completionWithItemsHandler returns completed as true when the action hasn't been successful

Originator:paolo
Number:rdar://30462368 Date Originated:10 Feb 2017
Status:Open Resolved:
Product:iOS+SDK Product Version:UIKit
Classification: Reproducible:Always
 
Summary:
The completionWithItemsHandler callback has a parameter "completed" that's supposed to report if the activity has been successfully completed.
However, this isn't always true, and it definitely isn't with AirDrop.
If a user attempts an AirDrop transfer, the callback reports to have been completed even when the transfer is declined.

Steps to Reproduce:
1. Install any sample code that makes use of AirDrop on 2 devices
2. On one device, invoke the AirDrop transfer to the second device
3. On the second device, reject the transfer
4. Close the Share sheet

Expected Results:
When the sheet is closed, completionWithItemsHandler is called with "completed" flag as false, and possibly an error.

Actual Results:
completionWithItemsHandler returns "completed" as true, and no error

Version:
iOS 10.2

Notes:


Configuration:
iOS Devices, happens with iPhones, iPads, and even with Macs

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!