Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I make a request to Dropbox to link with my android app and select to sign in with google account.
After autorization I get the next error: Error 403 (disallowed_useragent). You cant sign in from this screen because this app doesnt comply with Google`s embedded webview police.
My request code is as shown in the documentation:
String clientIdentifier = "my_app";
DbxRequestConfig requestConfig = new DbxRequestConfig(clientIdentifier);
List<String> scopes = asList("account_info.read", "files.content.write");
Auth.startOAuth2PKCE(getApplicationContext(), APP_KEY, requestConfig, scopes);
Please help!
Thanks for the report. It looks like you're using the Dropbox Java SDK. Can you let me know what version number of that SDK you have installed? Also, have you made any modifications to it? I just tried this and this error doesn't reproduce for me.
Additionally, please let me know what browser and version number of that browser you have installed on the system where this is being displayed.
Greg, thanks for reply.
The problem written above I have solved. the cause was in embedded webview, if a autorization link opens in full version of Google Chome - the app works fine. It was strange to see an error on Android 11 (I dont have a real device, so I was testing the app on virtual one), but in my real device (android 7) the error did not appear....
After the problem was solved, I have sent the app to test it to some guy with real device on Android 12, and ..... the error was still there:
In the end it turned out that the installed Dropbox application caused this error. Unistalling it the problem disappeared and the application linked successfully. Aditionally, I did the same on my device with android 7 and I still had no problems.
Very strange....
Do you need some data to find out what happens?
Thanks for following up. I'm glad to hear you got this working. The original error is expected if the authorization flow is processed in an web view. That's not officially supported so you should not so, and the current version of the SDK should not do so anyway.
Anyway, the second error is a different problem and is a known issue with the official Dropbox Android app itself when running on Android 11 or later. The team is working on that. One can temporarily uninstall the app to work around the issue, as you mentioned.
Thank you very much.
How could i know when this problem will be solved?
I'll follow up here once I have an update on that.
This should be fixed in the latest version of the official Dropbox Android app, v262.2.2. Please update to that and let us know if you're still seeing any issues. Thanks!
Yes, it works. Thanks a lot for help.
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on Twitter or Facebook.
For more info on available support options, see this article.
If you found the answer to your question, please 'like' the post to say thanks to the user!