Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7078659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:34:30+00:00 2026-05-28T06:34:30+00:00

I am using MacOSX 10.6, and the Xcode simulator is 4.2, but after trying

  • 0

I am using MacOSX 10.6, and the Xcode simulator is 4.2, but after trying my best, handleOpenURL does not get called in my appdelegate.m file, where I have implemented it. I have followed all the instructions in the tutorial given in the DropBox site(DropBox Tutorial),

but, once a user allows my application to access, after loggin in from there dropbox account through safari, the control is redirected to my “Link with DropBox” view, i.e. the view from which the user gets the chance to log in,

The problem is, the handleOpenURL method is not called, and neither is the didfinishWithLaunchingOptions method called. I have seen in some posts in various forums related to the same topic, that if we implement the latter(didfinishWithLaunchingOptions) method, handleOpenWithURL will not called, is it so?

if not, can you please help me find out the error in my code.. I am a beginner in this field, and will really appreciate your help in this regard.

The following is the code snippet in the appdelegate.m file

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 
{  
   NSLog(@"Inside didfinishwithoptions");
   DBSession* dbSession = [[[DBSession alloc] initWithAppKey:@"APP-KEY" 
                                                appSecret:@"APP-SECRET"
                                                     root:kDBRootAppFolder] // either kDBRootAppFolder or kDBRootDropbox
                        autorelease];
   [DBSession setSharedSession:dbSession];
   // Override point for customization after application launch.

   // Add the view controller's view to the window and display.
   [self.window addSubview:viewController.view];
   [self.window makeKeyAndVisible];

   return YES;
}

- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url 
{
    NSLog(@"Inside handleOpenURL");
    return NO;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:34:31+00:00Added an answer on May 28, 2026 at 6:34 am

    I think that application:handleOpenURL: is not called when you set target to iOS 4.2 or later. Use application:openURL:sourceApplication:annotation: instead.

    More in UIApplicationDelegate docs.

    UPDATE:
    Did you double check your CFBundleURLTypes entry in your application’s plist file? It should like something like that:

    <key>CFBundleURLTypes</key>
    <array>
      <dict>
        <key>CFBundleURLName</key>
        <string>DropBoxURLScheme</string>
        <key>CFBundleURLSchemes</key>
        <array>
          <string>db-something</string>
        </array>
      </dict>
    </array>
    

    Than you init the session (note that above “something” part is used as app key):

    DBSession* dbSession = [[[DBSession alloc] initWithAppKey:@"something" appSecret:@"APP_SECRET" root:ACCESS_TYPE] autorelease];
    

    If above doesn’t help, you must be doing wrong something else. Follow the DropBox’s tutorial more carefully then.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Xcode 4.1 and MacOSX Lion 10.7. I am trying to archive
I am using GCC on Mac OSX. I am trying to get GCC to
I have an app that works on iPhone simulator but not on iPhone target
I'm trying to get the current location using the iphone sdk. Here is the
I'm working on MacOSX 10.7.2 and Xcode 4.2.1. I installed libpng using port and
I wrote a server-client rmi application and I'm using MacOsX and Ubuntu laptops to
Trying to install Scrapy on Mac OSX 10.6 using this guide : When running
I am running Mac OSX 10.5.8. I installed matplotlib using macports. I get some
I am trying to build a Universal binary on MacOSX with g++. However, it
Can you help me? I try to install a ffmpeg using a brew, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.