Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Hi!
I need to register an Android app, that can upload a user's files to a specified Dropbox folder and add properties to them. Earlier, I did that via the 'Full Access App'. But now I see it's deprecated, and instead of that, it seems I supposed to use the 'Scoped access' app.
I've tried to register the 'Scoped access' app + App folder, and when applying properties, I got a response that Properties API is not accessible for App folders. Then I took a chance with 'Scoped access' + 'Full Dropbox' type of access, and a test user always got 5xx error on a login attempt.
So, how the app should be set up to achieve my task? Or Properties API works only with the deprecated 'Dropbox Legacy API'?
Thanks in advance.
The file properties functionality should be available and working from a "Full Dropbox" app, whether the app is registered for scoped access or the legacy permission system.
Can you elaborate on the "5xx error on a login attempt" issue you ran in to though? There is a known issue with the app authorization flow on mobile when using a scoped app with an official Dropbox SDK, such as the official Dropbox API v2 Java SDK. If you can share the details of the issue you're seeing, such as what library/SDK you're using, if any, the steps and code to reproduce the issue, and a screenshot or log of the error I'll see if that's what you're running in to or if it's something else.
It fails with 100% probability on Android Emulator (API 26) with the next output in the log:
2020-08-04 12:07:07.474 6302-6302/? E/cr_InstantAppsHandlerI: Exception when calling getInstantAppLaunchData Ew: 19500: Not an instant app at nz.a(chromium-Monochrome.aab-stable-410410171:3) at cA.a(chromium-Monochrome.aab-stable-410410171:6) at com.google.android.gms.common.api.internal.BasePendingResult.m(chromium-Monochrome.aab-stable-410410171:14) at com.google.android.gms.common.api.internal.BasePendingResult.l(chromium-Monochrome.aab-stable-410410171:5) at YE.i1(chromium-Monochrome.aab-stable-410410171:28) at UG.onTransact(chromium-Monochrome.aab-stable-410410171:3) at android.os.Binder.execTransact(Binder.java:674) 2020-08-04 12:07:07.820 6302-6302/? I/chatty: uid=10043(u0_a43) com.android.chrome identical 1 line 2020-08-04 12:07:08.923 6302-6302/? E/cr_InstantAppsHandlerI: Exception when calling getInstantAppLaunchData Ew: 19500: Not an instant app at nz.a(chromium-Monochrome.aab-stable-410410171:3) at cA.a(chromium-Monochrome.aab-stable-410410171:6) at com.google.android.gms.common.api.internal.BasePendingResult.m(chromium-Monochrome.aab-stable-410410171:14) at com.google.android.gms.common.api.internal.BasePendingResult.l(chromium-Monochrome.aab-stable-410410171:5) at YE.i1(chromium-Monochrome.aab-stable-410410171:28) at UG.onTransact(chromium-Monochrome.aab-stable-410410171:3) at android.os.Binder.execTransact(Binder.java:674)
Had no time for proxying HTTP responses, but if you need I can share the app key
That output unfortunately doesn't seem to reference Dropbox. Can you share the rest of the details, e.g., as outlined in my last comment, so I can get a better idea of what is failing/where? Thanks in advance!
After the fail, control doesn't return from Chrome to the app automatically. So it happens nothing inside the app and it doesn't get any response outside. If you can suggest how I can obtain the desired information please tell me. I'll gladly do that.
In that case, can you share:
Thanks!
implementation 'com.dropbox.core:dropbox-core-sdk:3.1.4'
... Auth.startOAuth2Authentication(activity, kDropBoxAppKey); ...
Thanks! That's helpful. It looks like this is due to an issue on our side with using scoped apps with the authorization flow from that mobile SDK. We'll work on that.
For now, you'll need to use a non-scoped ("legacy") Dropbox API app with Full Dropbox access. I'll follow up here once this flow is resolved for scoped apps though.
Scoped apps should be working on mobile now.
Hi there!
If you need more help you can view your support options (expected response time for a 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!