We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
qazimuneeb1
5 years agoExplorer | Level 3
Access my different dropbox accounts
Hi. I have different dropbox accounts for my files for some reason. I want to develop an android application which use dropbox authflow and i put my credentials for specific account and get the files...
- 5 years ago
You do not need to get a different app key for each account. As the developer, you only need to register your app once, at which point you'll receive an app key for the app. The app key only identifies the app, and does not enable access to any particular account. You can use the one app key in your app to allow multiple different accounts to connect to your app. Once the user authorizes the app with the OAuth app authorization flow, the app will receive an access token for that account. If done for multiple accounts, the app will receive a distinct access token per account.
And yes, if you have more than one app installed using the same app key you will get that security alert. The solution is just to uninstall one of the apps so that you just have only one copy of the app installed with the app key.
qazimuneeb1
Explorer | Level 3
One more thing that i built an app using the above examples, i was asked to put my app key inside manifest file and then i have to provide the app key on the login button aswell i.e
Auth.startOAuth2Authentication(getApplicationContext(), getString(R.string.APP_KEY));
i was confused which app key i should hardcode in my app because each dropbox account has its own app key. Providing different app key and connecting to different dropbox account is confusing to me. I had done this before and it works well in the start but after some attempts i got a secuirty alert box that some app is posing like your app hence your linking is disabled. This might be done because i placed same code and credentials in other app i.e the final apk. In simple words, i had two apks with same code and app keys in my phone and when i started to login from my 2nd app then this alert comes and i was unable to connect to dropbox account afterwards using the app.
Greg-DB
5 years agoDropbox Staff
You do not need to get a different app key for each account. As the developer, you only need to register your app once, at which point you'll receive an app key for the app. The app key only identifies the app, and does not enable access to any particular account. You can use the one app key in your app to allow multiple different accounts to connect to your app. Once the user authorizes the app with the OAuth app authorization flow, the app will receive an access token for that account. If done for multiple accounts, the app will receive a distinct access token per account.
And yes, if you have more than one app installed using the same app key you will get that security alert. The solution is just to uninstall one of the apps so that you just have only one copy of the app installed with the app key.
- qazimuneeb15 years agoExplorer | Level 3
Thanks Greg. You tell exactly the same which i was confusing. Now its all clear to me. Thanks Again! :)
About Discuss Dropbox Developer & API
Make connections with other developers
795 PostsLatest Activity: 7 days 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!