cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
If you’ve changed your email address, now's the perfect time to update it on your Dropbox account and we’re here to help! Learn more 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: 

SwiftyDropbox OS/X handleAppleEvent never called

SwiftyDropbox OS/X handleAppleEvent never called

johnkountz
New member | Level 2

I am porting an OS/X App from V1 to V2 and using SwiftyDropbox. 

I register my Apple event handler in AppDelegate load but it never gets a callback signalling the App has Linked. 

The Link flow appears to work perfectly, I get the login challenge followed by the Authorize the App view, but my 

handleAppleEvent

Never get's a callback.

What would you suggest?

A simple COMPLETE example showing how an OS/X client works is desperately needed by the community. 

1 Reply 1

Greg-DB
Dropbox Staff

Thanks for your post! We don't currently have a full sample project for SwiftyDropbox for macOS, but I'll be sure to pass this along as a request for one.

 

The instructions for setting up the app authorization flow with SwiftyDropbox can be found here:

 

https://github.com/dropbox/SwiftyDropbox#configure-your-project

 

Did you follow those steps exactly? I notice you mentioned "handleAppleEvent", but the SwiftyDropbox instructions use "handleGetURLEvent".

 

We did recently add a macOS example for the API v2 Objective-C SDK. That works similarly to SwiftyDropbox so it may serve as a useful reference. The instructions for the API v2 Objective-C SDK do use "handleAppleEvent", so perhaps you just mixed up the two sets of instructions?

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?