Forum Discussion

Alex1234's avatar
Alex1234
Explorer | Level 3
5 years ago

Properties and scoped access

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.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    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.

    • Alex1234's avatar
      Alex1234
      Explorer | Level 3

      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

      • Greg-DB's avatar
        Greg-DB
        Icon for Dropbox Staff rankDropbox Staff

        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! 

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,945 PostsLatest Activity: 4 minutes ago
351 Following

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!