cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

Xamarin Forms DropBox Api v2 C# Redirect Uri for iOS and Android

New member | Level 2
New member | Level 2

I used Dropbox api and successfulley got the token and and uploaded and download to and from Dropbox from both iOS and Android. Where my problem arise when the user gives app permission to dropbox there appears a code that has to be copy pasted by the user which is then used to get the access token. Recently I found some apps fetching that code automatically to app .Help me doing it and I have no idea about the redirect Uri 

3 Replies 3
Highlighted

Re: Xamarin Forms DropBox Api v2 C# Redirect Uri for iOS and Android

Dropboxer
Dropboxer

It sounds like you're currently using the OAuth 2 "code" flow without a redirect URI, so that the user needs to copy and paste the authorization code into your app to complete the app authorization flow.

 

It is possible to streamline this by using a "redirect URI", so that the authorization code (or access token, for the "token" flow) is automatically passed to your app. To do this, you should specify the 'redirect_uri' in the /oauth2/authorize URL. You can find more information on using this in the documentation for /oauth2/authorize. I also recommend reading the OAuth Guide, if you haven't already.

 

We also recommend using one of the official SDKs, if possible, as they'll do most of the work for you. For instance, the SimpleBlogDemo example app for the .NET SDK has an example of using a redirect URI with the OAut....

 

We don't have an official SDK for Xamarin though, so this may require some more work to do this in Xamarin on iOS/Android. For native clients like that, you can use a custom local URL scheme for your redirect URI.

h youRe: Xamarin Forms DropBox Api v2 C# Redirect Uri for iOS and Android

New member | Level 2
New member | Level 2

Thanks for the response. Yeah you are right. I used it without Redirect Uri .I don't know the Redirect uri of Android and iOS apps. Can you help me to achieve it?

 

Highlighted

Re: h youRe: Xamarin Forms DropBox Api v2 C# Redirect Uri for iOS and Android

Dropboxer
Dropboxer
There isn't a particular redirect URI I can share; the redirect URI is something you would choose and define in your app.

We can't officially support Xamarin, but we recommend using one of the official Dropbox SDKs if possible.

There's an old thread here that may be helpful for doing this in Xamarin though:

https://www.dropboxforum.com/t5/API-Support-Feedback/Dropbox-Xamarin-OAuth-Flow-Question-Retrieving-...

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Polls
Have you been keeping up good habits while working from home?
We've created a working from home cheat sheet to help keep up on those habits, check it out here.
Need more support?