We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
johnkountz
9 years agoNew member | Level 2
SwiftyDropbox OS/X handleAppleEvent never called
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
- Greg-DB9 years ago
Dropbox Community Moderator
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?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!