Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I want to authenticate to dropbox in tvOS. However, when dropbox opens the authentication dialog, there is not way for the user to fill it- the UI does not meet the tvOS requirements. So I want to open a tvOS dialog for username/password. But Is there a way then to take this data to authenticate manually, i.e. using code that will input the dropbox username and password?
Thanks
Hi everyone,
I'm also looking for a way to connect my tvOS app to Dropbox.
DropboxSDK.framework uses WebKit which is not available on tvOS.
On which way should I go ?
Thanks in advance.
This was discussed earlier in this thread. Please read through it for our recommendation.
It's not relevant enough imho
Can you please help more ?
What do you need help with specifically? What issues are you seeing?
John - the suggestion was to get the iOS SDK source, add it to your project manually, and compile that way, as opposed to using a pre-built library/framework.
Auth.swift in SwiftyDropbox is using WebKit:
https://github.com/dropbox/SwiftyDropbox/blob/master/Source/Auth.swift
But there is no WebKit in tvOS...
How can I authenticate to Dropbox on tvOS ?
Cheers,
Look into Digits for tvOS:
http://www.macrumors.com/2015/12/02/twitter-announces-digits-for-tv-os/
Here's a pretty crude rails implementation of what Gregory above suggested https://github.com/bluwave/tvOSDropboxAccessToken .
Then once your tv app has the access token and userID, you can call:
Dropbox.handleRedirectURL(NSURL(string:"db-\(appKey)://2/token#access_token=\(accessToken)&uid=\(userID)&token_type=bearer")!)
This feels pretty hacky though. Need a better way to save that info into Dropbox client.
Thanks for putting this together and sharing it!
A more direct way to save an access token is to use DropboxAuthManager.storeAccessToken:
Hi everyone,
I still can't log in to Dropbox on my tvOS app...
Any help from Dropbox would be much appreciated.
Thanks
Hi there!
If you need more help you can view your support options (expected response time for a 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!