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 v2 null - Do you want to allow this page to open “(null)”?
What would be causing my app to show "null" when running a Mac OS app called "ezReceiptMac" ? It is pointing to an existing Dropbox APP ID called "ezReceipt". My Mac OS app is sandboxed and has "Inco...
smithmsdb
Explorer | Level 3
When I try to connect my sandboxed Mac OS app called “ezReceiptMac” using my existing Dropbox APP ID for an app called “ezReceipt” the prompt shows “null” for the app’s name.
I guess I would expect it to read: Do you want to allow this page to open “ezReceiptMac”.
At this point when I click “Allow” it appears that the user does get logged into Dropbox but there is no indication of that other than in the Xcode console. Shouldn’t this action redirect the user back to the app from the browser after clicking “Allow”?
2017-01-12 10:32:52.656498 ezReceiptMac[14086:157708] DBSDKReachability Flag Status: R ------- networkStatusForFlags
2017-01-12 10:32:59.958434 ezReceiptMac[14086:157708] -[AppDelegate handleAppleEvent:withReplyEvent:] FIRED!
2017-01-12 10:33:00.049900 ezReceiptMac[14086:157708] Success! User is logged into Dropbox.
2017-01-12 10:38:12.484242 ezReceiptMac[14086:157708] DBSDKReachability Flag Status: R ------- networkStatusForFlags
2017-01-12 10:38:36.490128 ezReceiptMac[14086:157708] -[AppDelegate handleAppleEvent:withReplyEvent:] FIRED!
2017-01-12 10:38:36.564092 ezReceiptMac[14086:157708] Success! User is logged into Dropbox.
Thanks
Greg-DB
8 years agoDropbox Staff
Thanks! The expected result here is that the dialog would show the app name, and clicking "Allow" would send the user back to the app.
Can you share your plist file? That controls how your app is registered for this. In particular, for the null app name issue, I think CFBundleIdentifier may be relevant.
Can you share your plist file? That controls how your app is registered for this. In particular, for the null app name issue, I think CFBundleIdentifier may be relevant.
- smithmsdb8 years agoExplorer | Level 3
Yes please see the plist file below. The app id has been removed.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>CFBundleDevelopmentRegion</key> <string>en</string> <key>CFBundleExecutable</key> <string>$(EXECUTABLE_NAME)</string> <key>CFBundleIconFile</key> <string></string> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleInfoDictionaryVersion</key> <string>6.0</string> <key>CFBundleName</key> <string>$(PRODUCT_NAME)</string> <key>CFBundlePackageType</key> <string>APPL</string> <key>CFBundleShortVersionString</key> <string>1.0</string> <key>CFBundleVersion</key> <string>1</string> <key>LSMinimumSystemVersion</key> <string>$(MACOSX_DEPLOYMENT_TARGET)</string> <key>NSHumanReadableCopyright</key> <string>Copyright © 2016 RealSimple Software. All rights reserved.</string> <key>NSMainStoryboardFile</key> <string>Main</string> <key>NSPrincipalClass</key> <string>NSApplication</string> <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLSchemes</key> <array> <string>db-***************</string> </array> <key>CFBundleURLName</key> <string></string> </dict> </array> </dict> </plist>
- Greg-DB8 years agoDropbox StaffThanks! I was able to reproduce the issue by removing the value for CFBundleIdentifier. Yours is $(PRODUCT_BUNDLE_IDENTIFIER), so make sure that "Product Bundle Identifier" is set in your target's Build Settings. That's listed in the Packaging section.
- smithmsdb8 years agoExplorer | Level 3
The "Product Bundle Identifier" has been set in the target's Build Settings the whole time.
Still seeing the "null" issue.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,918 PostsLatest Activity: 2 days 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!