Forum Discussion

Lou P.6's avatar
Lou P.6
Helpful | Level 6
7 years ago
Solved

Cancel Allow screen hangs when using API v2

I am using API v2, I am allowed to login using https screen, then I get to the xxxx would like to access to its own folders, Apps xxxx inside your Dropbox. learn more, with two buttons; cancel and Allow...I select allow, get a blue line, but it hangs and no access to the drop box is allowed... this problem appeared with an upgrade to the apple operating systems... problem works with xcode and happens both on 9.4 and 10.0...please help... I don't want to change to AWS...thanks

 

  • Hi,  I was able to figure out what was happening to me.  On the physical hardware device, when authorization occurred I recieved a window as stated above, I did NOT recieve the window on the IOS simulator.  OS 10.13.6.  I found this link; https://github.com/dropbox/dropbox-sdk-obj-c#handling-the-authorization-flow

    specifically a call to openURL which is described as a redirecte back into SDK.  I placed the code in AppDelegate.m, and the connection was allowed to happen.  One solution pointed to the view controller not being on the top, but I don't think that was relevant. Thanks again

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

    I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with:

    - the specific steps to reproduce the issue
    - the exact names and versions of the platforms, browsers, and SDK/library you are using
    - a screenshot of the issue
    - the relevant code snippet(s)
    - any unexpected error or output in the Xcode console

    • Lou P.6's avatar
      Lou P.6
      Helpful | Level 6

      canOpenURL: failed for URL: "dbapi-2://1/connect" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"

      happens on the initial load of the login screen, then it after entering userid/pw, no more process messages run by my code.  

      Just a hung screen. (the one that hs the puzzle piece, and Cancel / Allow buttons on it.

      • Lou P.6's avatar
        Lou P.6
        Helpful | Level 6

        i tried to load the picture but it got an unexpected error.

         

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 6 days 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!