cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you an educator? Well we want to hear from you, so check out some tools we think might help you out here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mac authentication launching new instance of app

Mac authentication launching new instance of app

micromax
Helpful | Level 5

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?

1 Accepted Solution

Accepted Solutions

Re: Mac authentication launching new instance of app

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.

View solution in original post

2 Replies 2

Re: Mac authentication launching new instance of app

Greg-DB
Dropboxer

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.

Re: Mac authentication launching new instance of app

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.

View solution in original post

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    micromax Helpful | Level 5
  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?