We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
FrustratedUser3
4 years agoCollaborator | Level 8
Authenticating with a custom mobile app
Hello,
I am developing an app for my company and it needs to access Dropbox files on a regular basis. I often see in other apps the ability to connect with Dropbox, which presumably generates an access and refresh token pair to be used for Dropbox API access. Instead of writing my own login form, I would really like to use the Dropbox app on the phone to do the authentication. For example, the Adobe Reader app has a tab called 'Locations', which lists several cloud services. Tapping on 'Dropbox' opens the Dropbox app and the rest of the login flow happens there. When the user has successfully authenticated, the Dropbox app sends the user back to the Adobe Reader app.
From a development point of view, I have no idea what that process is called and I can't find any information about it. It's magical from a UX perspective and I desperately want to implement the same flow in my app. Any information at all about how those two apps are interacting to accomplish the seamless hand-off would be extremely helpful.
Thanks.
It sounds like you're describing the app authorization flow built in to the official Dropbox mobile SDKs. You can find those here:
- for Swift on iOS: https://github.com/dropbox/SwiftyDropbox
- for Objective-C on iOS: https://github.com/dropbox/dropbox-sdk-obj-c
- for Java: https://github.com/dropbox/dropbox-sdk-java (see Android example here)
If you use the provided functionality there, the SDK will do most of the work for you, such as automatically using the official Dropbox mobile app for the authorization step, when available.
- Greg-DBDropbox Staff
It sounds like you're describing the app authorization flow built in to the official Dropbox mobile SDKs. You can find those here:
- for Swift on iOS: https://github.com/dropbox/SwiftyDropbox
- for Objective-C on iOS: https://github.com/dropbox/dropbox-sdk-obj-c
- for Java: https://github.com/dropbox/dropbox-sdk-java (see Android example here)
If you use the provided functionality there, the SDK will do most of the work for you, such as automatically using the official Dropbox mobile app for the authorization step, when available.
- FrustratedUser3Collaborator | Level 8
Thanks for the reply. I am looking through the links you provided to learn more. Do you happen to know if there are any examples of how to integrate the SDK(s) in a React Native app?
- Greg-DBDropbox Staff
No, unfortunately the Dropbox SDKs don't officially support React Native.
About Discuss Dropbox Developer & API
Make connections with other developers
795 PostsLatest Activity: 7 days agoIf 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 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!