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: 

AuthRequest value return to VC

AuthRequest value return to VC

bbongrip
Helpful | Level 6

I need to return the authRequest value from AppDelegate to my ViewController so i can perform some code depending on whether it was canceled or not.  how can i do this?

 

Im using Swift 3

thanks

2 Replies 2

Re: AuthRequest value return to VC

Greg-DB
Dropboxer

The result of the app authorization flow is returned to the app delegate in the openURL callback as shown here:

 
Swift-SDK: https://github.com/dropbox/SwiftyDropbox#handle-redirect-back-into-sdk

Objective-C SDK: https://github.com/dropbox/dropbox-sdk-obj-c#handle-redirect-back-into-sdk

 

Different cases will trigger if it was successful or cancelled.

 

From there, you can signal that information within your app however you wish. That will likely vary by app. Exactly how you can do so is outside the scope of Dropbox API support, so I'm afraid I can't offer much advice for that. You may want to ask for advice on an iOS forum or StackOverflow.

Re: AuthRequest value return to VC

bbongrip
Helpful | Level 6
Ok thanks. I'll see what I can dig up
Who's talking

Top contributors to this post

  • User avatar
    bbongrip Helpful | Level 6
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?