cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We want your feedback when it comes to using Dropbox in a web browser. Tell us your thoughts right 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: 
1
Ask
2
Comments

Re: 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

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

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

Greg-DB
Dropboxer
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

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

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

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

Wouter V.
Explorer | Level 4

Thanks for the reply.

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

Wouter

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

Greg-DB
Dropboxer
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.

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

Wouter V.
Explorer | Level 4

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

Need more support?