We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
frixos
5 years agoExplorer | Level 3
Redirection after login with a google account do not work.
I have a problem with the login on DropBox in my app. (Login process with chrome mobile browser, App in Xamarin for Android) It works with google accounts I login one time before, therefore i think ...
Greg-DB
Dropbox Community Moderator
5 years agoThanks for following up. I can't seem to reproduce this issue though.
In the broken case, is "https://www.dropbox.com/oauth2/authorize" definitely the full URL of the page? The browser may be hiding the rest of it. I wouldn't expect the app name and permissions to be shown there if there is no client_id parameter set.
In any case, would you be able to share a screen recording of the issue? That would be helpful since this doesn't reproduce for me. Please make sure the full address bar is showing for reference. Apologies for the bother and thanks in advance!
frixos
5 years agoExplorer | Level 3
Yes, i think the url was in both cases the same.
The issue also appears if i create a new DropBox account.
I made a screen video.
- Greg-DB5 years ago
Dropbox Community Moderator
Thanks, your API support ticket has been received. We'll look into it.
- frixos5 years agoExplorer | Level 3
i found now a solution with the httpListener:
The security behaviour changed since Android 8. All devices higher than this version, will not work correct with the redirection.
The problem is, the httpListener blocks all incoming messages, after some time, if the app is in the background.
We can handel this by register the app as a forground service.
You need for this some code and one new android Permission "Forground".
The httpListener runs in a Android Service.
Are there a newer working example with the Xamarin WebAuthenticator? It would get a better user experience.
- Greg-DB5 years ago
Dropbox Community Moderator
Thanks for sharing your solution! We don't have any sample code for Xamarin unfortunately.
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!