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: 

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?