Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I downloaded the examples and can't find a instance of how to use this function:
This code doesn't not unlink or reset clients:
- (IBAction)didPressUnlink { [DBClientsManager unlinkAndResetClients]; linkButton.hidden=NO; unlinkButton.hidden=YES; }
Thoughts?
thanks
There's an example of using unlinkAndResetClients in the sample app here. Your usage looks correct though, and the method is working correctly for me.
How are you checking if it worked? You generally should just check if [DBClientsManager authorizedClient] is not nil. Also, what version of the SDK do you have installed? Please update to the latest if you aren't already using it.
Hello
I just noticed that my app is has "< Dropbox" in the upper left corner, shouldn't it leave the dropbox app after authentification?
It looks like it is "Pushing" to my app instead of leaving dropbox.
It seems to me that something is amiss with the method below:
No results are being "NSlogged" upon login:
- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options { DBOAuthResult *authResult = [DBClientsManager handleRedirectURL:url]; if (authResult != nil) { if ([authResult isSuccess]) { NSLog(@"Success! User is logged into Dropbox."); } else if ([authResult isCancel]) { NSLog(@"Authorization flow was manually canceled by user!"); } else if ([authResult isError]) { NSLog(@"Error: %@", authResult); } } return NO; }
Thanks,
The new completion handler (iOS 10) solved the response problem that was missing.
Thanks for your help.
Michael
Hi there!
If you need more help you can view your support options (expected response time for a 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!