We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
phunction
7 months agoExplorer | Level 4
.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...
Greg-DB
7 months agoDropbox 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.
- phunction7 months agoExplorer | 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?
- Здравко7 months agoLegendary | 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.
- Greg-DB7 months agoDropbox Staff
phunction Здравко is correct, you can use ProcessCodeFlowAsync to complete the authorization flow by having the user copy/paste the authorization code into the app, passing the authorization code to that 'code' parameter.
You do need to send the user through the authorization flow in their system browser, but when you don't use a redirect URI in the authorization flow, that authorization code is presented directly to the user directly so they can copy/paste it. That way you can still implement the flow even if you can't redirect to some listener.
And yes, to get a refresh token, you'll need to request "offline" access.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf 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!