cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DBClientsManager authorizeFromController after unlinkAndResetClients

DBClientsManager authorizeFromController after unlinkAndResetClients

Steve L.
Helpful | Level 6
Go to solution

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.

1 Accepted Solution

Accepted Solutions

Steve L.
Helpful | Level 6
Go to solution

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.

View solution in original post

3 Replies 3

Greg-DB
Dropbox Staff
Go to solution

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.
Helpful | Level 6
Go to solution

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.
Helpful | Level 6
Go to solution

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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Steve L. Helpful | Level 6
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?