Learn how to make the most out of the Dropbox Community here 💙!
Forum Discussion
ShinehahGnolaum
7 years agoHelpful | Level 7
How do I know when there has been a change in the user's Dropbox account?
How do I know when there has been a change in the user's Dropbox account made from outside of the current iOS device such as a new file created? I also need to know if the user logged out, or if a d...
Greg-DB
Dropbox Staff
7 years agoTo retrieve changes using SwiftyDropbox on iOS, you should use the listFolder and listFolderContinue methods. You can call back to listFolderContinue, passing in the latest cursor value you recieved, to retrieve any new changes.
Also, you can use the listFolderLongpoll method to get low latency updates about when new changes are available, by passing in the latest cursor value you recieved. When it does indicate changes, you can then call back to listFolderContinue to retrieve them.
That's all for file/folder changes only though. Can you elaborate on what information you're looking for when you say you "need to know if the user logged out"? There are a variety of places where the user interacts with Dropbox. Are you referring to them logging out of the official Dropbox web site, the official Dropbox mobile app, the official Dropbox desktop app, or of your own third party app?
ShinehahGnolaum
7 years agoHelpful | Level 7
How would I use listFolder, listFolderLongpoll, and listFolderContinue? I pass the cursor from the result into a call of listFolderContinue. Then how would I tell what has changed from the previous query?
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,972 PostsLatest Activity: 2 days ago
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 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!