We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
phunction
3 years agoHelpful | Level 5
iOS 17.x can no longer login and allow dropbox access on app
i, something has changed with iOS 17. My app is using the DropboxClient() api to get an auth token, which would show safari and ask for a login. The login works, and they will get the question if t...
phunction
3 years agoHelpful | Level 5
It appears HttpListener is the issue, is there another way to use Dropbox in my app? Or to at least authorize the app, because it does work fine on iOS 17 if the app has already been authorized/logged in with iOS 16
Greg-DB
Dropbox Community Moderator
3 years agophunction As Здравко said, you can omit the redirect URI entirely, in which case the user will be presented with the authorization code directly so they can manually copy/paste it into the app.
Otherwise, to use a redirect URI if you can't use a server, you can use a redirect URI with a custom URL scheme for your app, if you use PKCE in the app authorization flow. A redirect URI with a custom URL scheme would look something like "customappscheme://auth"; you would need to decide on and set the exact strings you want to use and configure that for your app. Refer to your platform's documentation for information on defining and using custom schemes like that.
- phunction3 years agoHelpful | Level 5I was looking at the example for PKCE, but it still uses httplistener, which I think is the issue. What is the best way to make this work in iOS 17.x? Has the .Net API been tested with iOS 17.x yet?
- Greg-DB3 years ago
Dropbox Community Moderator
The Dropbox .NET SDK examples happen to use a listener, but the authorization flow itself also supports custom URL schemes when using PKCE.
In any case, the Dropbox .NET SDK is not built for or tested with Xamarin/Maui/iOS in particular. I'll pass this along as a feature request for official support for that, but I can't promise if or when that might be implemented.
Note that, separate from the .NET SDK, Dropbox does offer native SDKs for Swift and for Objective-C meant for use on Apple platforms. Dropbox recommends using these native SDKs for those platforms, as they'll handle most of the work of the authorization flow for you.
- phunction3 years agoHelpful | Level 5
OK, thanks. Is there an example currently on line that shows the "customappscheme://auth"; method with PKCE?
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!