<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: After updating to iOS 9, App gets stuck when trying to login into dropbox in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/After-updating-to-iOS-9-App-gets-stuck-when-trying-to-login-into/m-p/157134#M5293</link>
    <description>&lt;P&gt;Yes! that did it. I just needed to add "db-" to make it work. Good&amp;nbsp; catch, I guess I couldn't have done it on my own, I never suspected there was something wrong with my APP-KEY.&lt;/P&gt;
&lt;P&gt;Thanks Gregory!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Nov 2015 12:16:08 GMT</pubDate>
    <dc:creator>alvaro a.2</dc:creator>
    <dc:date>2015-11-18T12:16:08Z</dc:date>
    <item>
      <title>After updating to iOS 9, App gets stuck when trying to login into dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/After-updating-to-iOS-9-App-gets-stuck-when-trying-to-login-into/m-p/157127#M5286</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;My App stopped working after updating to iOS 9 because of the new Apple restriction on canopenurl which forces to register the url schemes you plan to you use in your app.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I followed this tutorial to register the url schemes for my App: &lt;A href="https://blogs.dropbox.com/developers/2015/08/important-update-your-core-api-app-for-ios-9/" rel="nofollow noreferrer" target="_blank"&gt;https://blogs.dropbox.com/developers/2015/08/important-update-your-core-api-app-for-ios-9/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;However, I am still getting the error&amp;nbsp; dbapi-2://1/connect" - error: "(null)" when I I run the app in the simulator and try to connect to dropbox.I supposed that is because I don't have the dropbox app in the simulator.&lt;/P&gt;
&lt;P&gt;When I run my app in the device I don't get the error because I have dropbox&amp;nbsp; installed. The problem thought is the App will open dropbox to log the user but then after login, it won't come back to my app and if I come back manually, it won't upload files because it tells me the user is unauthorized.&lt;/P&gt;
&lt;P&gt;I read in this post on stackoverflow &lt;A href="http://stackoverflow.com/questions/31454686/in-ios9-dropbox-app-is-not-being-opened-instead-webview-is-being-opened-for-log" rel="nofollow noreferrer" target="_blank"&gt;http://stackoverflow.com/questions/31454686/in-ios9-dropbox-app-is-not-being-opened-instead-webview-is-being-opened-for-log&lt;/A&gt; that because of the new restriction, dropbox will have to register url schemes for all apps that support its sdk?&lt;/P&gt;
&lt;P&gt;Any advice on how to solve this problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:38:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/After-updating-to-iOS-9-App-gets-stuck-when-trying-to-login-into/m-p/157127#M5286</guid>
      <dc:creator>alvaro a.2</dc:creator>
      <dc:date>2019-05-29T09:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: After updating to iOS 9, App gets stuck when trying to login into dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/After-updating-to-iOS-9-App-gets-stuck-when-trying-to-login-into/m-p/157128#M5287</link>
      <description>&lt;P&gt;The null error in the simulator is expected, since the&amp;nbsp;Dropbox app isn't installed, but it should fall back to the built-in authorization flow.&lt;/P&gt;
&lt;P&gt;The restriction in iOS 9 only applies to canOpenURL, and not openURL, so the official&amp;nbsp;Dropbox app itself does not need to register the URL schemes of every app that uses the SDK. (There was a bug in a beta version of iOS 9 that affected this though, so make sure you're running a general release version.)&lt;/P&gt;
&lt;P&gt;If you're seeing an issue with the user not getting redirected back to your app after authorizing it in the&amp;nbsp;Dropbox app, please make sure you've followed all of the instructions from the &lt;A href="https://www.dropbox.com/developers-v1/core/sdks/ios%20https://www.dropbox.com/developers-v1/core/start/ios" target="_blank" rel="nofollow noreferrer"&gt;installation&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers-v1/core/start/ios" target="_blank" rel="nofollow noreferrer"&gt;tutorial&lt;/A&gt; pages. If you're still seeing this issue, please follow up here with:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the steps to reproduce the issue, including the versions of iOS and the&amp;nbsp;Dropbox iOS SDK you're using&lt;/LI&gt;
&lt;LI&gt;the relevant code snippet(s), e.g., where you initialize your&amp;nbsp;DBSession and call linkFromController, if you're using the Core SDK, or the equivalent in SwiftyDropbox&lt;/LI&gt;
&lt;LI&gt;the relevant pieces of your app's plist, e.g., where you register&amp;nbsp;LSApplicationQueriesSchemes, as well as your own db-APP_KEY scheme&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 18 Nov 2015 02:51:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/After-updating-to-iOS-9-App-gets-stuck-when-trying-to-login-into/m-p/157128#M5287</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-11-18T02:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: After updating to iOS 9, App gets stuck when trying to login into dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/After-updating-to-iOS-9-App-gets-stuck-when-trying-to-login-into/m-p/157129#M5288</link>
      <description>&lt;P&gt;Cross-linking with&amp;nbsp;&lt;A href="http://stackoverflow.com/questions/33765981/ios9-unable-to-complete-login-process-when-using-dropbox-sdk" rel="nofollow noreferrer"&gt;http://stackoverflow.com/questions/33765981/ios9-unable-to-complete-login-process-when-using-dropbox-sdk&lt;/A&gt; on Stack Overflow, which may be the same question.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 04:29:03 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/After-updating-to-iOS-9-App-gets-stuck-when-trying-to-login-into/m-p/157129#M5288</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-11-18T04:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: After updating to iOS 9, App gets stuck when trying to login into dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/After-updating-to-iOS-9-App-gets-stuck-when-trying-to-login-into/m-p/157130#M5289</link>
      <description>&lt;P&gt;Steve, yes I posted the question on stackoverflow as well since I thought I was going to have better luck but since you guys replied to the post. I am deleting the question from stackoverflow.&lt;/P&gt;
&lt;P&gt;Gregory, thanks for replying. My iOS version is 9 and I am using &lt;A href="https://blogs.dropbox.com/developers/2015/05/try-out-swiftydropbox-the-new-swift-sdk-for-dropbox-api-v2/" target="_blank" rel="nofollow noreferrer"&gt;Swiftydropox tutorial&lt;/A&gt; and not the tutorial you mentioned which appears to for objective C. The dropbox SDK version I am using, I supposed is for Swift 2, I followed &lt;A href="https://github.com/dropbox/SwiftyDropbox" target="_blank" rel="nofollow noreferrer"&gt;this steps&lt;/A&gt;&amp;nbsp; to install it.&lt;/P&gt;
&lt;P&gt;Here are the functions included in my delegate:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; func application(application: UaIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -&amp;gt; Bool {&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dropbox.setupWithAppKey("myappkey")&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Override point for customization after application launch.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject) -&amp;gt; Bool {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if let authResult = Dropbox.handleRedirectURL(url) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch authResult {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case .Success(let token):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print("Success! User is logged into Dropbox.")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case .Error(let error, let description):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print("Error: \(description)")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;I noticed the function that handles Authorization never gets call.&lt;/P&gt;
&lt;P&gt;And here is the declaration on my info.Plist&lt;/P&gt;
&lt;P&gt;&amp;lt;key&amp;gt;LSApplicationQueriesSchemes&amp;lt;/key&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;array&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;string&amp;gt;dbapi-2&amp;lt;/string&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/array&amp;gt;&lt;/P&gt;
&lt;P&gt;Let me know if you need any other information, thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 04:59:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/After-updating-to-iOS-9-App-gets-stuck-when-trying-to-login-into/m-p/157130#M5289</guid>
      <dc:creator>alvaro a.2</dc:creator>
      <dc:date>2015-11-18T04:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: After updating to iOS 9, App gets stuck when trying to login into dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/After-updating-to-iOS-9-App-gets-stuck-when-trying-to-login-into/m-p/157131#M5290</link>
      <description>&lt;P&gt;Thanks! We'd need to see the actual setupWithAppKey call with your key, as well as where you set up your db-APP_KEY scheme in your plist for this though. If you'd rather not share those publicly, you can open an API ticket here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/contact" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/contact&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 05:02:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/After-updating-to-iOS-9-App-gets-stuck-when-trying-to-login-into/m-p/157131#M5290</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-11-18T05:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: After updating to iOS 9, App gets stuck when trying to login into dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/After-updating-to-iOS-9-App-gets-stuck-when-trying-to-login-into/m-p/157132#M5291</link>
      <description>&lt;P&gt;Sure, I can provide that information. Here is db-APP_KEY on my info.Plist file&lt;/P&gt;
&lt;P&gt;&amp;lt;array&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;dict&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;key&amp;gt;CFBundleTypeRole&amp;lt;/key&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;string&amp;gt;Editor&amp;lt;/string&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;key&amp;gt;CFBundleURLSchemes&amp;lt;/key&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;array&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;string&amp;gt;bd31o3eded5n334&amp;lt;/string&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/array&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/dict&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/array&amp;gt;&lt;/P&gt;
&lt;P&gt;And here is the function with the actual setupWithAppKey&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -&amp;gt; Bool {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dropbox.setupWithAppKey("bd31o3eded5n334")&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Override point for customization after application launch.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return true&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;Let me know if you need to see something else.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 10:54:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/After-updating-to-iOS-9-App-gets-stuck-when-trying-to-login-into/m-p/157132#M5291</guid>
      <dc:creator>alvaro a.2</dc:creator>
      <dc:date>2015-11-18T10:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: After updating to iOS 9, App gets stuck when trying to login into dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/After-updating-to-iOS-9-App-gets-stuck-when-trying-to-login-into/m-p/157133#M5292</link>
      <description>&lt;P&gt;Per the &lt;A href="https://www.dropbox.com/developers/documentation/swift#tutorial" target="_blank" rel="nofollow noreferrer"&gt;tutorial&lt;/A&gt;, the URL scheme you register in&amp;nbsp;CFBundleURLSchemes should be "db-APP_KEY", where "APP_KEY" is your app key. You have just "APP_KEY" registered. This is how the&amp;nbsp;Dropbox app redirects the user back to your app, so just add "db-" to the beginning of that and that should fix it.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 11:07:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/After-updating-to-iOS-9-App-gets-stuck-when-trying-to-login-into/m-p/157133#M5292</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-11-18T11:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: After updating to iOS 9, App gets stuck when trying to login into dropbox</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/After-updating-to-iOS-9-App-gets-stuck-when-trying-to-login-into/m-p/157134#M5293</link>
      <description>&lt;P&gt;Yes! that did it. I just needed to add "db-" to make it work. Good&amp;nbsp; catch, I guess I couldn't have done it on my own, I never suspected there was something wrong with my APP-KEY.&lt;/P&gt;
&lt;P&gt;Thanks Gregory!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 12:16:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/After-updating-to-iOS-9-App-gets-stuck-when-trying-to-login-into/m-p/157134#M5293</guid>
      <dc:creator>alvaro a.2</dc:creator>
      <dc:date>2015-11-18T12:16:08Z</dc:date>
    </item>
  </channel>
</rss>

