<?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: Redirect after login not completing and app is closing.  (SwiftyDropBox) in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-after-login-not-completing-and-app-is-closing/m-p/178291#M7188</link>
    <description>&lt;P&gt;Thanks Jordan! That actually works fine for me though. I get redirected back to the test app and get the "Success! User is logged into Dropbox with token: ..." message on a device running iOS 9 with the official&amp;nbsp;Dropbox app installed.&lt;/P&gt;
&lt;P&gt;Is this happening on multiple devices/simulators for you?&lt;/P&gt;
&lt;P&gt;You may also want to try deleting the Pods and reinstalling with pod install just in case something was broken in your pod installation.&lt;/P&gt;</description>
    <pubDate>Sat, 23 Jul 2016 00:37:58 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-07-23T00:37:58Z</dc:date>
    <item>
      <title>Redirect after login not completing and app is closing.  (SwiftyDropBox)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-after-login-not-completing-and-app-is-closing/m-p/178285#M7182</link>
      <description>&lt;P&gt;I've followed the SwiftyDropbox tutorial and after linking the app to my (user) db account the app just quits with out throwing any errors after the redirect back to the app.&lt;/P&gt;
&lt;P&gt;This is my console output.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These "errors" occur after the button press.&lt;/P&gt;
&lt;P&gt;I don't get a console print saying&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;"Success! User is logged into Dropbox with token: &lt;/SPAN&gt;&lt;SPAN class="s2"&gt;\&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;token&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;)"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;This is my VC.swift&lt;/P&gt;
&lt;P class="p1"&gt;&lt;IMG src="https://www.dropboxforum.com/hc/user_images/y1JdSDIr-oaO9hwammHmrQ.png" /&gt;&lt;/P&gt;
&lt;P class="p1"&gt;This is the relevant code in my AppDelegate.swfit&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;IMG src="https://www.dropboxforum.com/hc/user_images/rPx3v-aiNLztLo5FpObzTw.png" /&gt;&lt;/P&gt;
&lt;P class="p1"&gt;Console output&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;IMG src="https://www.dropboxforum.com/hc/user_images/Sok1PQEddc3poyeQFT-EGw.png" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:31:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-after-login-not-completing-and-app-is-closing/m-p/178285#M7182</guid>
      <dc:creator>Jordan B.7</dc:creator>
      <dc:date>2019-05-29T09:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect after login not completing and app is closing.  (SwiftyDropBox)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-after-login-not-completing-and-app-is-closing/m-p/178286#M7183</link>
      <description>&lt;P&gt;What version of iOS are you running? The only thing that looks potentially wrong is that you're using the older version of the openURL method.&lt;/P&gt;
&lt;P&gt;There's a note in the tutorial here about that:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/developers/documentation/swift#tutorial" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers/documentation/swift#tutorial&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can use this version for 9.0+:&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="pln"&gt;func application&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;app&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="typ"&gt;UIApplication&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; openURL url&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; NSURL&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; options&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;[&lt;/SPAN&gt;&lt;SPAN class="typ"&gt;String&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;:&lt;/SPAN&gt; &lt;SPAN class="typ"&gt;AnyObject&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;])&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;-&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="typ"&gt;Bool&lt;/SPAN&gt; &lt;SPAN class="pun"&gt;{&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN class="pun"&gt;The version you're using is for &amp;lt;9.0:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN class="pun"&gt;func application(app: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject) -&amp;gt; Bool {&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Jul 2016 04:09:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-after-login-not-completing-and-app-is-closing/m-p/178286#M7183</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-07-22T04:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect after login not completing and app is closing.  (SwiftyDropBox)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-after-login-not-completing-and-app-is-closing/m-p/178287#M7184</link>
      <description>&lt;P&gt;Thanks for the response.&lt;/P&gt;
&lt;P&gt;I am on iOS 9,&lt;/P&gt;
&lt;P&gt;I made the code change to the appropriate&amp;nbsp;openURL method and It still fails to redirect.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I get to the DB login screen and hit "Cancel" It also fails to redirect.&lt;/P&gt;
&lt;P&gt;This is my info.plist&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG src="https://www.dropboxforum.com/hc/user_images/dd8S3kl4z0VOAbVYBE3rlg.png" /&gt;and code for relevant section:&lt;/P&gt;
&lt;P&gt;&amp;lt;key&amp;gt;LSApplicationQueriesSchemes&amp;lt;/key&amp;gt;&lt;BR /&gt; &amp;lt;array&amp;gt;&lt;BR /&gt; &amp;lt;string&amp;gt;dbapi-2&amp;lt;/string&amp;gt;&lt;BR /&gt; &amp;lt;string&amp;gt;dbapi-8-emm&amp;lt;/string&amp;gt;&lt;BR /&gt; &amp;lt;/array&amp;gt;&lt;BR /&gt; &amp;lt;key&amp;gt;CFBundleURLTypes&amp;lt;/key&amp;gt;&lt;BR /&gt; &amp;lt;array&amp;gt;&lt;BR /&gt; &amp;lt;dict&amp;gt;&lt;BR /&gt; &amp;lt;key&amp;gt;CFBundleTypeRole&amp;lt;/key&amp;gt;&lt;BR /&gt; &amp;lt;string&amp;gt;Editor&amp;lt;/string&amp;gt;&lt;BR /&gt; &amp;lt;key&amp;gt;CFBundleURLSchemes&amp;lt;/key&amp;gt;&lt;BR /&gt; &amp;lt;array&amp;gt;&lt;BR /&gt; &amp;lt;string&amp;gt;db-u3tf1l9k3flsira&amp;lt;/string&amp;gt;&lt;BR /&gt; &amp;lt;/array&amp;gt;&lt;BR /&gt; &amp;lt;/dict&amp;gt;&lt;BR /&gt; &amp;lt;/array&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 04:37:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-after-login-not-completing-and-app-is-closing/m-p/178287#M7184</guid>
      <dc:creator>Jordan B.7</dc:creator>
      <dc:date>2016-07-22T04:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect after login not completing and app is closing.  (SwiftyDropBox)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-after-login-not-completing-and-app-is-closing/m-p/178288#M7185</link>
      <description>&lt;P&gt;Thanks for the additional information. In your original post though, you said "the app just quits with out throwing any errors after the redirect back to the app", however in your last reply you said it "still fails to redirect". Can you clarify what redirect does or doesn't occur, and when the app quits exactly?&lt;/P&gt;
&lt;P&gt;In any case, if you can provide a sample project, that would be most helpful so we can reproduce it and look into it.&amp;nbsp;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 04:40:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-after-login-not-completing-and-app-is-closing/m-p/178288#M7185</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-07-22T04:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect after login not completing and app is closing.  (SwiftyDropBox)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-after-login-not-completing-and-app-is-closing/m-p/178289#M7186</link>
      <description>&lt;P&gt;It segues back to a white screen and then the app quits&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 06:11:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-after-login-not-completing-and-app-is-closing/m-p/178289#M7186</guid>
      <dc:creator>Jordan B.7</dc:creator>
      <dc:date>2016-07-22T06:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect after login not completing and app is closing.  (SwiftyDropBox)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-after-login-not-completing-and-app-is-closing/m-p/178290#M7187</link>
      <description>&lt;P&gt;Here is my project&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.dropbox.com/s/zvk8qj4aqkx8jxm/dbApi.zip?dl=0" target="_blank" rel="nofollow noreferrer"&gt;https://www.dropbox.com/s/zvk8qj4aqkx8jxm/dbApi.zip?dl=0&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 06:12:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-after-login-not-completing-and-app-is-closing/m-p/178290#M7187</guid>
      <dc:creator>Jordan B.7</dc:creator>
      <dc:date>2016-07-22T06:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect after login not completing and app is closing.  (SwiftyDropBox)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-after-login-not-completing-and-app-is-closing/m-p/178291#M7188</link>
      <description>&lt;P&gt;Thanks Jordan! That actually works fine for me though. I get redirected back to the test app and get the "Success! User is logged into Dropbox with token: ..." message on a device running iOS 9 with the official&amp;nbsp;Dropbox app installed.&lt;/P&gt;
&lt;P&gt;Is this happening on multiple devices/simulators for you?&lt;/P&gt;
&lt;P&gt;You may also want to try deleting the Pods and reinstalling with pod install just in case something was broken in your pod installation.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jul 2016 00:37:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-after-login-not-completing-and-app-is-closing/m-p/178291#M7188</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-07-23T00:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Redirect after login not completing and app is closing.  (SwiftyDropBox)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-after-login-not-completing-and-app-is-closing/m-p/207064#M10091</link>
      <description>&lt;P&gt;I've got the similar problem (I can't see your image, it's link was broken), but I found that the reason I've got this problem is because I was changing the name of my app, however the old copy of the app is still installed on the device, therefore, while dropbox api redirect, it go to the old app rather than the new app, so I remove the old app and everything work perfectly!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 05:31:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Redirect-after-login-not-completing-and-app-is-closing/m-p/207064#M10091</guid>
      <dc:creator>ykchau</dc:creator>
      <dc:date>2017-02-16T05:31:47Z</dc:date>
    </item>
  </channel>
</rss>

