Comments (8)
Unfortunately, the Dropbox iOS Swift SDK does not officially support SwiftUI. I'll pass this along as a request for official support for that, but I can't promise if/when that would be done. (There's a thread here that may be helpful though.)
from swiftydropbox.
I tried the examples in the thread and they did not change the output. I am making a macOS app.
from swiftydropbox.
Thanks for following up. I'm sorry to hear that didn't help. I'll follow up here if/when the team officially adds support for SwiftUI.
from swiftydropbox.
I don't think this is a problem with SwiftUI, as the URL Dropbox redirects to is: db-<APP KEY>://2/token?code=<CODE>&state=<STATE>
, and not db-<APP KEY>://2/token?access_token=<ACCESS TOKEN>
from swiftydropbox.
What format of redirect URI does SwiftyDropbox expect?
from swiftydropbox.
Is there a way to manually parse the URL and get the Access Token?
from swiftydropbox.
I found a workaround for now: I modify the url to set response_type=token and then I manually parse the URL and create a Dropbox Client from the Access Token.
from swiftydropbox.
Thanks for following up and clarifying. I'm glad to hear you got this working.
For reference though, unless SwiftUI is somehow complicating this, you shouldn't have to parse the URLs yourself. As long as you implement the authorization flow as shown in the documentation here, using authorizeFromControllerV2
(which is preferred, or authorizeFromController
, which is deprecated, but not both), the SDK should handle this all for you automatically.
from swiftydropbox.
Related Issues (20)
- Tag 7.0.1 can't be built with Swift 5.0.x HOT 4
- Error when downloading empty file, crash the app HOT 3
- Direct Auth(iOS) is not working, if the Dropbox app was installed HOT 1
- Token not refreshing HOT 1
- not possible to access the thumbnail from getThumbnailBatch in swiftydropbox HOT 3
- Would like non-deprecated getting-started code HOT 2
- UIWebview is depricated HOT 4
- Crash at DropboxTransportClient: 707 when downloading empty file (zero bytes) HOT 2
- Background Upload HOT 5
- Swifty Dropbox
- Single source of truth for authorized state HOT 1
- Title
- ETA for Release of SwiftyDropbox v10 HOT 8
- (10.0.0-beta1) MockDropboxTransportClient is not public, so it can't be used in it tests HOT 2
- Cant get specific metadata from listFolderWithPath results (SwiftyDropboxObjC). HOT 4
- xcframework size HOT 3
- v10 fails to detect app Bundle ID and stores authorization without it HOT 4
- DropboxClientsManager.unlinkClients no longer working as expected HOT 3
- Usage in an app extension HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftydropbox.