Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

XamarinDev's avatar
XamarinDev
New member | Level 2
8 years ago

Native Dropbox App OAuth grant workflow for iOS using .Net (Xamarin)

Hi, I'm integrating dropbox into Xamarin.iOS using the C# Dropbox.Api nuget package.  The authentication via webview works fine, however when the iOS dropbox native app is installed, It won't connect and go that URI redirection process instead.

I did the following here https://github.com/dropbox/dropbox-sdk-obj-c#configure-your-project

But when I checked github for .NET I noticed it never used "dbapi-2"

 

I can implement it manually using URI redirects.  But i'm wondering what the open URI scheme is for Oauth ver 2, I tried the URI in DropboxOAuth2Helper.GetAuthorizeUri and "dbapi-2://2/connect?k="+_appKey+"&s=_secretKey" no avail.

 

Thanks!

3 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago
    The official Dropbox API v2 .NET/C# SDK doesn't officially support Xamarin/iOS unfortunately, so it doesn't implement the app authorization flow where the official Dropbox iOS app is used (via dbapi-2).

    Further, that flow where the official Dropbox iOS app is used is only meant for use by the official Dropbox iOS SDKs (i.e., the Objective-C SDK, as you mentioned, and the Swift SDK). That being the case, it's not officially documented, and accordingly I don't have any resources to share on how to manually implement it, nor can I recommend doing so (since it's not officially documented/supported for non-official SDKs). I'll send that along as a feature request though. Apologies I can't be of more help!
  • kanak's avatar
    kanak
    Explorer | Level 3
    8 years ago

    Hi, Can you please tell me the way how you connected dropbox using webview?

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!