iOS Dropbox library for SyncServerII
-
Register your application in the Dropbox App Console. https://dropbox.com/developers/apps Part of what you get here is a DropboxAppKey
-
Add a Dropbox URL scheme to your app in Xcode (See https://github.com/dropbox/SwiftyDropbox#get-started)
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>db-<APP_KEY></string>
</array>
<key>CFBundleURLName</key>
<string></string>
</dict>
</array>
- Into your Info.plist for your app, also add:
<key>LSApplicationQueriesSchemes</key>
<array>
<string>dbapi-8-emm</string>
<string>dbapi-2</string>
</array>
- Pass the DropboxAppKey to the
DropboxSyncServerSignIn
constructor.
See also https://www.dropbox.com/developers/documentation/swift