openURL:completionHandler: not working in document picker extension

Originator:davidz
Number:rdar://17924188 Date Originated:August 5, 2014
Status:Open Resolved:
Product:iOS SDK Product Version:8.0b5
Classification: Reproducible:Yes
 
Summary:
From the UIDocumentPickerExtensionViewController, calling this line fails with success = NO and has no effect:[self.extensionContext openURL:[NSURL URLWithString:@"dbx-dropbox://noop"] completionHandler:^(BOOL success) {}]; Typing that URL into Safari does launch the Dropbox app.

Steps to Reproduce:
1. Create UIDocumentPickerExtensionViewController and launch it (for example by using the NewBox demo app)
2. Attempt to call [self.extensionContext openURL:[NSURL URLWithString:@"dbx-dropbox://noop"] completionHandler:^(BOOL success) {}];, where dbx-dropbox:// is a registered URL scheme for the Dropbox app.

Expected Results:
Dropbox app opens and the completionHandler is called with YES

Actual Results:
Nothing happens and completionHandler is called with NO

Version:
8.0 (12A4345d)

Notes:


Configuration:
iPhone and iPad simulators

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!