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: 

Dropbox app returns db-<app_key>://1/connect instead of ://2/ failing setupwithappkey

Dropbox app returns db-<app_key>://1/connect instead of ://2/ failing setupwithappkey

Wouter V.
Explorer | Level 4
Go to solution

Already migrated all users to V2. Everything fine.

Pulled 200+ commits from objective-c-official

 

When a new users attempts to link the app to their Dropbox, the Dropbox app opens -> they tap "Allow" -> the Dropbox app opens our app via the URL-scheme ... fine

 

However, the url passed to OpenWithURL = 

 

db-<app_key>://1/connect?oauth_token_secret=lalala-tatata=oauth2%3<someUUID>&uid=1234567&oauth_token=oauth2%3A

 

while the updated dropbox-objc-official codebase only accepts urls with host '2' , i.e.:   ://2/connect 

 

hence  - (BOOL)canHandleURL:(NSURL *)url returns NO

 

causing authentication to fail.

 

any pointers what changed, what am I doing wrong?

 

 

[EDIT]

When doing the exact same thing on a device that does not have the Dropbox app installed -> auth goes through SafariViewController -> user taps 'allow' -> URL-scheme call our app -> this time with ://2/ url -> everything works fine

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution
This issue is now fixed on master.

Note for future reference though, we highly recommend only using the official release versions, and not just pulling from master. The commits on master may not be as well tested as the tagged release versions.

View solution in original post

4 Replies 4

Greg-DB
Dropbox Staff
Go to solution
Thanks for the report! Please use the latest SDK release, currently v3.3.4, instead of master for now to avoid this issue.

Wouter V.
Explorer | Level 4
Go to solution

Thanks for the reply.

"manually" parsing ://1/connect also worked - for now. We'll switch to the SDK

Wouter

Greg-DB
Dropbox Staff
Go to solution
This issue is now fixed on master.

Note for future reference though, we highly recommend only using the official release versions, and not just pulling from master. The commits on master may not be as well tested as the tagged release versions.

Wouter V.
Explorer | Level 4
Go to solution

Thanks, and yes, we'll be using the official SDK

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Wouter V. Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?