You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

esromneb's avatar
esromneb
New member | Level 2
12 months ago

IOS - SwiftyDropbox - my application, in developer mode, wont update requested permissions

I've made a new developer app. I'm using SwiftDropbox 9.2.0. Before connecting my iOS app, I go into the permissions, and enable:

files.metadata.write

* files.content.write

* files.content.read

 

At the bottom I click "submit". Then from my iOS I request auth, and the summary says "View basic information about your Dropbox account such as your username, email, and country".

 

When I try to write a example file (following https://cocoapods.org/pods/SwiftyDropbox ) I get this error:

 

 

 

[request-id a8b59ed888b3442a8572d37d9495a6c9] API auth error - {

    ".tag" = "missing_scope";

    "required_scope" = "files.content.write";

}

 

 

 

 

Even the text when I'm first authorizing the app is wrong. So what do I need to do for the permission to update? I DO have dropbox installed on the same phone.

  • OK I figured it out. Even if the app has the permissions, your iOS code needs to request the same permissions: let scopeRequest = ScopeRequest(scopeType: .user, scopes: ["account_info.read", "files.metadata.write", "files.content.write", "files.content.read"], includeGrantedScopes: false)
  • esromneb's avatar
    esromneb
    New member | Level 2
    OK I figured it out. Even if the app has the permissions, your iOS code needs to request the same permissions: let scopeRequest = ScopeRequest(scopeType: .user, scopes: ["account_info.read", "files.metadata.write", "files.content.write", "files.content.read"], includeGrantedScopes: false)

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,889 PostsLatest Activity: 12 hours ago
327 Following

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!