cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done 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: 

Upgrade api v1 to v2 (objective-c)

Upgrade api v1 to v2 (objective-c)

m-grachev
Explorer | Level 3

I import  ObjectiveDropboxOfficial sdk in my project. But I have a problem with logining without installed Dropbox app on device, and also on the simulator (iOS 9 and 10).
After calling  
DBClientsManager authorizeFromController.... I have empty white screen and input in log

DBSDKReachability Flag Status: -R ------- networkStatusForFlags

-canOpenURL: failed for URL: "dbapi-2://1/connect" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"

-canOpenURL: failed for URL: "dbapi-8-emm://1/connect" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"

 

I use only iPad.
I upgraded project from api v1 -> v2 by instruction

<key>LSApplicationQueriesSchemes</key>
    <array>
        <string>dbapi-8-emm</string>
        <string>dbapi-2</string>
    </array>

 

If installed Dropbox app all works as well. Also I tried Clear project and remove DerivedData. 
Please help.

3 Replies 3

Re: Upgrade api v1 to v2 (objective-c)

Greg-DB
Dropboxer
If the official Dropbox iOS app is installed, the SDK will automatically use that for the app authorization flow. (That way, the user doesn't have to sign in again.)

This message can happen when the SDK checks if the official app is installed, and this error code indicates that it is not. This should be safe to ignore though, as the SDK should automatically handle this and fall back to the in-app version of the authorization flow.

It sounds like that's where you're seeing a white screen though, instead of the app authorization page. Can you share a screenshot of your app at that point so we can make sure we understand what's happening? It sounds like there may be an issue loading the page, so make sure nothing is interfering with the network requests to www.dropbox.com.

Also, please let us know the version number of the SDK you have installed. Thanks in advance!

Re: Upgrade api v1 to v2 (objective-c)

m-grachev
Explorer | Level 3

I use 'ObjectiveDropboxOfficial', '3.0.18'
White screen move from right side on full screen.
I have internet connection.
In dropbox api v1 logging screen show from this controller without problem.
Also when I use ObjectiveDropboxOfficial with Dropbox app, I have message, what I use old Dropbox platform, see attached screenshot. Is it normal?
Tap login(Import) buttonTap login(Import) buttonLogin screen into appLogin screen into appLogin in Dropbox app with api 2.0Login in Dropbox app with api 2.0

Re: Upgrade api v1 to v2 (objective-c)

Stephen C.14
Dropboxer

It looks like you are receiving the API v1 deprecation warning because you have not yet acknowledged the API v1 deprecation.

 

Please login to Dropbox and go to https://www.dropbox.com/developers, and the click the acknowledge button on the big yellow banner that appears. Then, this warning will go away.

 

Please let me know if you have additional questions.

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Stephen C.14 Dropboxer
  • User avatar
    m-grachev Explorer | Level 3
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?