We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

phunction's avatar
phunction
Explorer | Level 4
7 months ago

.Net Maui

Hi, I need to find a way to connect my app with Dropbox. I am moving from a Xamarin.iOS app to .net Maui due to Xamarin not being supported anymore. (I can't just change my app to the new .NET as the libraries I used were not ported)

 

Everything I find onlines shows doing this with a webview, but that is no longer allowed.

 

I really need to find a way to make this work with .Net Maui, surely this is possible?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    We can't provide help for the third party platforms as they're not made by Dropbox, but please let me know if there's something we can help with on the Dropbox API or SDK itself. Perhaps someone else here has some experience with Maui though.

     

    As for the Dropbox .NET SDK, you can find the information that here. That should support .NET Standard 2.0. You can find the examples for the SDK here.

    • phunction's avatar
      phunction
      Explorer | Level 4

      The main issue is the call back to the platform and adding some kind of listener.

       

      I found somewhere a way to bring up a web login, and they could manually copy the key that is presented so it could be pasted into my app. I can't remember where that was and if it provided a refresh token as well so they would not have to do that every time the app is launched.

       

      Or if someone else has an idea on how to make it work without that.

       

      Is there a way to allow a login without having to spawn an external browser?

      • Здравко's avatar
        Здравко
        Legendary | Level 20

        phunction wrote:

        ...

        I found somewhere a way to bring up a web login, and they could manually copy the key that is presented so it could be pasted into my app. ...


        Hi phunction,

        If I have to bet, you have noticed usage of ProcessCodeFlowAsync method which first parameter accepts authentication code receive from browser. ...

         


        phunction wrote:

        ... and if it provided a refresh token ...


        That depends on whether you have set tokenAccessType during URL construction to Offline or no. In general it's supported.

        Good luck.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 12 months ago
325 Following

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 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!