We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Guy G.7
11 years agoNew member | Level 1
Authentication to dropbox on tvOS
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
36 Replies
Replies have been turned off for this discussion
- Greg-DB11 years ago
Dropbox Community Moderator
This was discussed earlier in this thread. Please read through it for our recommendation.
- John D.6411 years agoNew member | Level 1
It's not relevant enough imho
Can you please help more ?
- Greg-DB11 years ago
Dropbox Community Moderator
What do you need help with specifically? What issues are you seeing?
- Ameesh K.11 years agoNew member | Level 1
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.
- John D.6411 years agoNew member | Level 1
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,
- Ameesh K.11 years agoNew member | Level 1
Look into Digits for tvOS:
http://www.macrumors.com/2015/12/02/twitter-announces-digits-for-tv-os/
- g r.110 years agoNew member | Level 1
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.
- Greg-DB10 years ago
Dropbox Community Moderator
Thanks for putting this together and sharing it!
A more direct way to save an access token is to use DropboxAuthManager.storeAccessToken:
- John D.6410 years agoNew member | Level 1
Hi everyone,
I still can't log in to Dropbox on my tvOS app...
Any help from Dropbox would be much appreciated.
Thanks
- Greg-DB10 years ago
Dropbox Community Moderator
John, have you reviewed the information above in this thread, including the sample code helpfully provided by g r.? Have you hit some issue with the technique described?
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!