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

micromax's avatar
micromax
Helpful | Level 5
8 years ago

Mac authentication launching new instance of app

Migrating my Mac OS app to the V2 API, using the Dropbox SDK for Objective-C.

 

Making good progress but having this issue:

1. Run app in XCode

2. Trigger authentication process

3. Safari appears and I'm prompted "<myAppName> would like access to the files and folders in your Dropbox." so I click Allow

4. Then I'm prompted "Do you want to allow this page to open <myAppName>?" and again I click Allow

5. A NEW INSTANCE of my app starts up, rather than the one I'm debugging.

 

Does anyone happen to know why this would happen?

  • Thanks for the reply.  I did have my plist set up correctly.  However you were right - I had another binary on my machine that was registered for that same callback (an earlier production version of my app).  After deleting that copy, the redirect is now coming back to the instance I'm running in XCode.

     

    Problem fixed.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    The redirect back to your app should be controlled by the CFBundleURLSchemes registered using your app key in your plist in this step of the configuration.

     

    I'm not sure off hand what may cause this issue, so can you share your plist so we can look into it?

     

    Do you have multiple binaries for your app saved that each have that URL scheme registered? You should be able to right click on the different instances in the dock and click "Show in Finder" to see if they are using the same binary.

    • micromax's avatar
      micromax
      Helpful | Level 5

      Thanks for the reply.  I did have my plist set up correctly.  However you were right - I had another binary on my machine that was registered for that same callback (an earlier production version of my app).  After deleting that copy, the redirect is now coming back to the instance I'm running in XCode.

       

      Problem fixed.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,918 PostsLatest Activity: 2 days ago
334 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!