You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
smithmsdb
8 years agoExplorer | Level 3
Dropbox api redirecting/opening the wrong Mac OS app
Why is the Dropbox api redirecting to the wrong app? I created a desktop Mac OS app called "DBMacApp" for testing purposes. I worked through the tutorial at https://github.com/dropbox/dropbox-sd...
Greg-DB
Dropbox Staff
The app authorization flow redirect is directed by the db-<APP_KEY> URL scheme registered in an app's plist file, in the CFBundleURLTypes section.
It sounds like you have the same app key registered in both DBMacApp and ezReceiptMac, causing the undesired redirect. Since DBMacApp was just for testing, the easiest solution is to just delete it. If you do want to keep it around for further testing, you should update it to put in a different app key instead.
smithmsdb
8 years agoExplorer | Level 3
My Mac OS app is sandboxed so once I enabled "Incoming" and "Outgoing" Connections and cleaned the project it worked... well sort of.
When I try to Allow a connection to Dropbox with the new app "ezReceiptMac" using the below code snippet I now get: Do you want to allow this page to open “(null)”? Cancel/Allow.
If I choose "Allow" I am never directed back to the app. Why would it be saying "null" for the app name?
[DropboxClientsManager authorizeFromControllerDesktop:[NSWorkspace sharedWorkspace] controller:self openURL:^(NSURL *url){ [[NSWorkspace sharedWorkspace] openURL:url]; } browserAuth:YES];
- Greg-DB8 years agoDropbox StaffIt looks like you opened a new thread for this, so I'll take a look and reply there:
https://www.dropboxforum.com/t5/API-support/Dropbox-api-v2-null-Do-you-want-to-allow-this-page-to-open-null/m-p/201802#M9540
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,917 PostsLatest Activity: 2 hours ago
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 or Facebook.
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!