We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Brendan D.
9 years agoExplorer | Level 4
UIDocumentPickerViewController import fails with "No internet connection..."
Hi,
I'm using UIDocumentMenuViewController to display a selection of cloud storage services. Then I'm displaying the UIDocumentPickerViewController for the service selected with the following c...
Greg-DB
Dropbox Community Moderator
9 years agoHi Brendan, we'll be happy to look into this, but we could use a few more pieces of information:
- when this started occurring
- the specific steps we can follow to reproduce the issue
- any other relevant code snippet(s)
Please open a ticket here with that so we can route this appropriately:
https://www.dropbox.com/developers/contact
Thanks!
- when this started occurring
- the specific steps we can follow to reproduce the issue
- any other relevant code snippet(s)
Please open a ticket here with that so we can route this appropriately:
https://www.dropbox.com/developers/contact
Thanks!
- Brendan D.9 years agoExplorer | Level 4
Hi Greg,
Thanks for responding to my post.
I've been working on creating a sample app to demonstrate the problem. Copying code that I've used in my main app, but for some odd reason, the sample app isn't exhibiting all of the same symptoms. It is exhibiting one symptom though and that's to hang at the very end of the download before the Downloading... alert disappears. It basically never stops and even the Cancel button becomes unresponsive.
But for some reason my sample app downloads much more quickly than my main app. It's so bizarre because I'm calling the same code to display the cloud service menu and then to pick the cloud service, then download the file.
My test app was just a single view app, but my main app is a tab bar app which is also a UIDocument based app. Plus it also fires up a couple of listeners. And it opens up one view and then modally displays another view on top of that and that's where the tab bar controller is and then the UIDocumentPickerViewController gets created off of that.
So I may need to more closely replicate my basic structure in my test app to see if any of those things can affect download performance and functionality of downloading from Dropbox.
I'll keep at it and if I find anything definitive then I'll submit a ticket.
Thanks,
Brendan- Brendan D.9 years agoExplorer | Level 4
So a strange thing is that I changed where I create my "FilesListViewController" so that it's instantiated directly from my root controller and now downloads are quicker and no more connection errors. Although they're still no where near as quick as they should be. For example, downloading a 205 MB file from my Mac from my Dropbox account using Safari takes 15 seconds. The same file downloaded using UIDocumentPickerViewController takes 3 1/2 minutes. I'm using the same 5 ghz WiFi network on my MacBook Pro and my iPhone 7. Using macOS Sierra 10.12.5 and iOS 10.3.2 respectively.
Is it normal for UIDocumentPickerViewController to take that much longer to download?
- Greg-DB9 years ago
Dropbox Community Moderator
Thanks for following up. I can't say offhand if that's expected, as these may be using different mechanisms. We'd have to take a closer look. Please feel free to open a ticket with details/code if you'd like us to do so. Thanks!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!