Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Kevin R.'s avatar
Kevin R.
New member | Level 1
11 years ago

Keep Dropbox authentication in memory for future use IOS

Hello everybody,

I've created a root app for IOS in Cydia. Dropbox integration is in my application, everything is fine, link account, upload, download etc...

I need to keep in memory the user authentication because everytime my app is closed, if I need to do one thing related to Dropbox I need to relink my app to my Dropbox account. The issue is that if Dropbox application is installed, my application is closed for Dropbox opening and after successful authentication my app is reopened. Because of the close/reopen actions, the authentication is not taken in count by my app (my app is not running at this moment...), If Dropbox application is not installed, everything is fine because an UIWebView is openned into my app, so the authentication is done when my app is open and it's taken in count !

So my question is how can I keep in memory the user authentication even if it's done when my app is closed ? Or alternatively how can I force the Dropbox authentication to be done in the UIWebView instead of the application ?

Thanks in advance for your help !

1 Reply

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    11 years ago

    [Cross-linking for reference: http://stackoverflow.com/questions/28147032/keep-dropbox-authentication-in-memory-for-futur-use-ios ]

    Whether or not the Dropbox app is installed shouldn't affect how the access token is stored. In either case, when the user finishes the app authorization flow, the Dropbox SDK stores the access token in the keychain and the user is returned to your app.

    If this isn't working correctly for you, please let us know what SDK and version you're using, and post the relevant code snippets, as well as any log output from the app.

About Dropbox API Support & Feedback

Node avatar for 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!