Lauching App with URL (via UIApplicationDelegate's handleOpenURL) working under iOS 4, but not under iOS 3.2

后端 未结 4 1899
终归单人心
终归单人心 2020-12-12 16:43

I have implemented UIApplicationDelegate\'s

application:didFinishLaunchingWithOptions:

and

application:handleOpenURL:
         


        
4条回答
  •  萌比男神i
    2020-12-12 17:15

    I started writing application which used Dropbox api. To understand concept, I ran a sample application using my Key/secret mentioned at dropbox/developer documentation. Once sample app started working, I used same key/secret values for my application.

    For sample app, implementation of handleOpenURL (or openURL on iOS 4.2) gets executed as expected. For some odd reason, it wasn't the case for my app. My app entered background in order to show login screen and authentication page of dropbox. After successful login and authentication, my app never entered foreground. It was true for both platform Simulator and device (iPad)

    I tried almost everything listed on internet including this post. Thanks. There was NO success, though.

    At last, it STARTED working for my application when I did following:

    • On simulator, select "iOS Simulator --> Reset Content and Settings", and reset.
    • On device, I deleted sample application related executable and which in turn delete cache associated to it.

提交回复
热议问题