We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
minis
2 years 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)
2 Replies
- Здравко2 years agoLegendary | 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.
- Greg-DB2 years ago
Dropbox Community Moderator
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:
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!