share file from Google Drive or Dropbox to App

Is it possible to share a file like an mp3 from an app (like Google Drive, Dropbox or Mail) to my app?

I've been reading about extensions but it looks like I can't access my app's file storage from the extension. Is this the case?

If that is, should I look at the API's for Google Drive and Dropbox?

Answered by just.do.it in 10590022

You need to configure an app group and enable the same in both the extension and the containing app. This way the extension can share data or files with it's containig app.


Dirk

Accepted Answer

You need to configure an app group and enable the same in both the extension and the containing app. This way the extension can share data or files with it's containig app.


Dirk

Thanks for the tips!


I've managed to create an extension that gets the share url and downloads the file to the shared container. I can then read this container when my app opens and import the files from there.


What I can't work out is how to customize the share dialog. I don't need the text field or the image. Ideally I'd like to show a progress bar and remove the post button. I'm printing the progress percentage to the console so now I just need to work out how to customize the ui.


Any suggestions on how to customize the dialog?

share file from Google Drive or Dropbox to App
 
 
Q