Forum Discussion

Tom A.5's avatar
Tom A.5
New member | Level 2
11 years ago

iOS 8 storage provider app extension UIActivityController or UIDocumentInteractionController?

We are writing a new app, and create an audio file that we want to allow users to share out to Dropbox, email, Airdrop, etc.

When I put a plain UIActivityController up, which I supply with an NSURL to the audio file all that shows is Mail, Message and Airdrop. I have the latest Dropbox on the iPhone, and understand that the Dropbox app has a storage provider app extension. Yet nothing shows up.

Do I have to use the UIDocumentInteractionController to get Dropbox to show? I thought it would automatically show on the UIActivityController panel, as Dropbox is installed.

Thanks for any tips.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    If you're looking for the new iOS 8 document picker extension, I believe you want to use UIDocumentPickerViewController, for which the Dropbox app supports the modes:

    • UIDocumentPickerModeImport
    • UIDocumentPickerModeExportToService
    • Greg-DB's avatar
      Greg-DB
      Icon for Dropbox Staff rankDropbox Staff
      I just wanted to follow up to update this thread about the current state of this functionality.

      On iOS 9 and 10, we support Document Picker modes "Import" and "Export", but not modes "Open" and "Move".

      On iOS 11, we support the new File Provider extension (which is iOS 11 only). Our general recommendation is for people to update to iOS 11 and the latest version of the Dropbox app. You can find information on the functionality provided by the Dropbox File Provider extension here: https://www.dropbox.com/help/mobile/ios-files-app

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,948 PostsLatest Activity: 33 minutes ago
351 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!