We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

Steve L.'s avatar
Steve L.
Helpful | Level 6
8 years ago

DBClientsManager authorizeFromController after unlinkAndResetClients

I've found that calling DBClientsManager authorizeFromController after unlinkAndResetClients when using browser-based authentication results in an empty browser screen.

 

I don't think I'm doing anything unusual, just basically the following

    

    [DBClientsManager unlinkAndResetClients];

 

 

and some time later

 

 

    [DBClientsManager authorizeFromController:[UIApplication sharedApplication]
                                   controller:self
                                      openURL:^(NSURL *url) {
                                      [[UIApplication sharedApplication] openURL:url];
      }];

 

Note it works as expected if the Dropbox app is installed and when using the "in app browser authentication" that was available prior to ObjectiveDropboxOfficial 3.0.11.

 

I'd appreciated any insights as to what is happening and how I might resolve it.

  • In the end I worked around the problem.   I can't definitely say it was in our code but I am working on the assumtion it was.

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

    Thanks for the report Steve. I just tried this though, and it's not reproducing for me. To help us track this down, please let me know:

     

    - Are you seeing this on physical devices (if so, which) and/or the simulator?

    - What version(s) of iOS are you seeing this with?

    - Is there anything potentially intefering with your network connection to www.dropbox.com?

    - Does the page reliably display properly if you don't call unlinkAndResetClients?

     

    Thanks in advance! 

    • Steve L.'s avatar
      Steve L.
      Helpful | Level 6

      Digging deeper, this only occurs if I invoke connect from deep in our view hierarchy and so is unlikely to be a general problem and quite possibly is application specific.

       

      I'll keep investigating.

      • Steve L.'s avatar
        Steve L.
        Helpful | Level 6

        In the end I worked around the problem.   I can't definitely say it was in our code but I am working on the assumtion it was.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 39 minutes ago
325 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!