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
minis
5 months agoNew member | Level 2
problems with access from app via token
in my android app project i need to send of files to be used later in dropbox and to automate this i registered it and used tokens.
I have a free account.
The app is still under development and testing so many changes and improvements are being made.
The problem that after I associate it and get the token that through specific api I go to use in my app everything works fine, after a few days (in which maybe I made changes to the app) the token is no longer recognized. I have to disconnect the app and reconnect it again with the new token. How can I solve the problem?
Translated with DeepL.com (free version)
- Greg-DBDropbox Staff
minis Здравко is correct. Please refer to the following resources for more information:
- https://developers.dropbox.com/oauth-guide
- https://www.dropbox.com/developers/documentation/http/documentation#authorization
- https://dropbox.tech/developers/using-oauth-2-0-with-offline-access
And if you're using the Dropbox Java SDK for Android, check out the example app here:
- ЗдравкоLegendary | Level 20
minis wrote:...
The problem that after I associate it and get the token that through specific api I go to use in my app everything works fine, after a few days (in which maybe I made changes to the app) the token is no longer recognized. ...Hi minis,
You haven't mentioned explicitly, but most probably with "token" you mean access token, not refresh token. Right?
All new issued access tokens (doesn't matter exactly way) are short lived. Typically 4 hours. To gain long term access you need refresh token, that doesn't expire on its own. Such type of token results from requesting "offline" access type. Did you do it? If not give it a try. 😉 Do you have restricted access in time still?
Hope this helps.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,885 PostsLatest Activity: 4 hours agoIf 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!