Integrate Dropbox app in my app

时间:2021-07-07 16:55:45

So, this is the task I want to achieve. In my app, I have a text field which displays a list of all the apps and files that are present in my iOS device. One of them will be dropbox. When I tap on drop box, it should open the dropbox app and ask for user credentials. Once the user enters his credentials, it should save them and it shouldn't ask the next time he logs in again. Now, in that textbox that I mentioned earlier, I should get the list of the files that are there in my dropbox folder.

所以,这是我想要实现的任务。在我的应用程序中,我有一个文本字段,显示我的iOS设备中存在的所有应用程序和文件的列表。其中一个将是Dropbox。当我点击下拉框时,它应该打开Dropbox应用程序并询问用户凭据。一旦用户输入他的凭证,它应该保存它们并且它不应该在下次再次登录时询问。现在,在我之前提到的那个文本框中,我应该得到我的dropbox文件夹中的文件列表。

I'm new to iOS app development stuff so any help in the form of links, documentation will help alot. Please give me a brief idea on how to achieve this task.

我是iOS应用程序开发的新手,所以任何链接,文档形式的帮助都会有所帮助。请简要介绍一下如何完成这项任务。

2 个解决方案

#2


2  

What you are proposing violates the sandboxing principle of iOS. Apps don't know about anything outside their own documents folder, and do not have permission to read or write outside the area.

您提出的建议违反了iOS的沙盒原则。应用程序不知道他们自己的文档文件夹之外的任何内容,并且没有在该区域外读取或写入的权限。

Files stored in Dropbox are accessible via the Dropbox API, so you will be able to achieve that part of your design, but most of the other apps on the device will not be visible or accessible to you.

存储在Dropbox中的文件可通过Dropbox API访问,因此您将能够实现设计的这一部分,但设备上的大多数其他应用程序将无法显示或访问。

#1


#2


2  

What you are proposing violates the sandboxing principle of iOS. Apps don't know about anything outside their own documents folder, and do not have permission to read or write outside the area.

您提出的建议违反了iOS的沙盒原则。应用程序不知道他们自己的文档文件夹之外的任何内容,并且没有在该区域外读取或写入的权限。

Files stored in Dropbox are accessible via the Dropbox API, so you will be able to achieve that part of your design, but most of the other apps on the device will not be visible or accessible to you.

存储在Dropbox中的文件可通过Dropbox API访问,因此您将能够实现设计的这一部分,但设备上的大多数其他应用程序将无法显示或访问。