<?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: Can't close the page after authentication in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/412821#M22304</link>
    <description>&lt;P&gt;No error is shown in the Xcode console.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Apr 2020 10:05:59 GMT</pubDate>
    <dc:creator>leninsmannath</dc:creator>
    <dc:date>2020-04-22T10:05:59Z</dc:date>
    <item>
      <title>Can't close the page after authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/409363#M22184</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use the below code for dropbox login&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DropboxClientsManager.authorizeFromController(UIApplication.shared, controller: self, openURL: {(url: URL) -&amp;gt; Void in UIApplication.shared.openURL(url) })&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it works perfectly, But after login window, it will ask permission to access the files and folder from dropbox. If I click the allow or cancel button it won't close the window and don't go to OpenURL function in the app delegate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I checked the "&lt;A href="https://github.com/dropbox/SwiftyDropbox" target="_blank" rel="noopener"&gt;https://github.com/dropbox/SwiftyDropbox&lt;/A&gt;" SwiftyDropbox sample code from Github. It works perfectly on it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 13:56:42 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/409363#M22184</guid>
      <dc:creator>leninsmannath</dc:creator>
      <dc:date>2020-04-13T13:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can't close the page after authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/409506#M22189</link>
      <description>&lt;P&gt;Can you confirm you followed all of the instructions for configuring your project and setting up the authorization flow &lt;A href="https://github.com/dropbox/SwiftyDropbox#configure-your-project" target="_self"&gt;as documented here&lt;/A&gt;?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, make sure you have your &lt;A href="https://github.com/dropbox/SwiftyDropbox#application-plist-file" target="_self"&gt;"CFBundleURLSchemes" configured with your "db-APPKEYHERE" URL scheme&lt;/A&gt;, and that you have &lt;A href="https://github.com/dropbox/SwiftyDropbox#handle-redirect-back-into-sdk" target="_self"&gt;the code in place to handle the redirect&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, do you get any error/output in the console in Xcode?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2020 15:13:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/409506#M22189</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-13T15:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can't close the page after authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/412411#M22287</link>
      <description>&lt;P&gt;Yes, I did this all &lt;A href="https://github.com/dropbox/SwiftyDropbox#application-plist-file" target="_self" rel="nofollow noopener noreferrer"&gt;"CFBundleURLSchemes" configured with your "db-APPKEYHERE" URL scheme&lt;/A&gt;, and that you have &lt;A href="https://github.com/dropbox/SwiftyDropbox#handle-redirect-back-into-sdk" target="_self" rel="nofollow noopener noreferrer"&gt;the code in place to handle the redirect&lt;/A&gt;. And it working perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach a screenshot. when I click on the allow button the page is not dismissing.&lt;/P&gt;&lt;P&gt;Here is the video url. Please check this.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dropbox.com/s/p5tm1rb39ol74hx/WhatsApp%20Video%202020-04-21%20at%202.37.32%20PM.mp4?dl=0" target="_blank"&gt;https://www.dropbox.com/s/p5tm1rb39ol74hx/WhatsApp%20Video%202020-04-21%20at%202.37.32%20PM.mp4?dl=0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="WhatsApp Image 2020-04-13 at 2.08.53 PM(1).jpeg" style="width: 563px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/15066i2466AF6FBC6D61F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="WhatsApp Image 2020-04-13 at 2.08.53 PM(1).jpeg" alt="WhatsApp Image 2020-04-13 at 2.08.53 PM(1).jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 09:12:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/412411#M22287</guid>
      <dc:creator>leninsmannath</dc:creator>
      <dc:date>2020-04-21T09:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can't close the page after authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/412546#M22295</link>
      <description>&lt;P&gt;Thanks for sharing that. Do you get any errors or output in the console in Xcode though?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that the action is being submitted and that the SFSafariViewController is attempting to redirect to the custom URL scheme though, as it's momentarily&amp;nbsp;shown in the title bar, so I would expect some error if that fails.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 15:55:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/412546#M22295</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-21T15:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can't close the page after authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/412821#M22304</link>
      <description>&lt;P&gt;No error is shown in the Xcode console.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 10:05:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/412821#M22304</guid>
      <dc:creator>leninsmannath</dc:creator>
      <dc:date>2020-04-22T10:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can't close the page after authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/412909#M22308</link>
      <description>&lt;P&gt;Thanks for checking that. Can you also check:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Are you using the latest version of the SwiftyDropbox SDK, currently v5.1.0? If not, please upgrade to that and try again.&lt;/LI&gt;
&lt;LI&gt;Does your app happen to use &lt;A href="https://developer.apple.com/documentation/uikit/app_and_environment/scenes/specifying_the_scenes_your_app_supports#3262270" target="_self"&gt;scenes&lt;/A&gt;? If so, please try the change covered here:&amp;nbsp;&lt;A href="https://github.com/dropbox/SwiftyDropbox/issues/259" target="_blank"&gt;https://github.com/dropbox/SwiftyDropbox/issues/259&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Otherwise, please supply a small sample project that reproduces this issue so we can reproduce it here to investigate.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 14:47:26 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/412909#M22308</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-22T14:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can't close the page after authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/413393#M22321</link>
      <description>&lt;P&gt;The dropbox version used is 5.1.0&lt;/P&gt;&lt;P&gt;I created a new project and do the same thing. The issue is still on that app too.&lt;/P&gt;&lt;P&gt;Here is the source code: &lt;A href="https://github.com/leninsmannath/DropboxSampleApp" target="_blank"&gt;https://github.com/leninsmannath/DropboxSampleApp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;give your dropbox API key and check the above sample project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 16:37:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/413393#M22321</guid>
      <dc:creator>leninsmannath</dc:creator>
      <dc:date>2020-04-23T16:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can't close the page after authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/413400#M22322</link>
      <description>&lt;P&gt;Thanks! I see you don't actually have &lt;A href="https://github.com/dropbox/SwiftyDropbox#handle-redirect-back-into-sdk" target="_self"&gt;the "Handle redirect back into SDK" step&lt;/A&gt; implemented in &lt;A href="https://github.com/leninsmannath/DropboxSampleApp/blob/master/DropboxSampleApp/AppDelegate.swift#L15" target="_self"&gt;your&amp;nbsp;AppDelegate.swift&lt;/A&gt;. Please make sure to add that as &lt;A href="https://github.com/dropbox/SwiftyDropbox#handle-redirect-back-into-sdk" target="_self"&gt;documented&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I noticed from &lt;A href="https://github.com/leninsmannath/DropboxSampleApp/blob/master/DropboxSampleApp/Info.plist#L23" target="_self"&gt;your use of 'UIApplicationSceneManifest' in your Info.plist&lt;/A&gt; that this uses scenes, so make sure you also implement the handler &lt;A href="https://github.com/leninsmannath/DropboxSampleApp/blob/master/DropboxSampleApp/SceneDelegate.swift#L13" target="_self"&gt;in&amp;nbsp;SceneDelegate.swift&lt;/A&gt; as noted &lt;A href="https://github.com/dropbox/SwiftyDropbox/issues/259" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 17:00:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/413400#M22322</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-04-23T17:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can't close the page after authentication</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/413617#M22327</link>
      <description>&lt;P&gt;Thanks, Greg. It's working cool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I implemented the redirect back into SDK on AppDelegate.swift on original source code, forgot to do in the sample sent to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I didn't implement the handler in SceneDelegate.swift.&lt;/P&gt;&lt;P&gt;You already mentioned the &lt;A href="https://github.com/dropbox/SwiftyDropbox/issues/259" target="_blank"&gt;https://github.com/dropbox/SwiftyDropbox/issues/259&lt;/A&gt; in your reply. Sorry I didn't check it properly. I apologize for it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway thanks for your patience and support.&lt;/P&gt;&lt;P&gt;Thanks, Greg&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>Fri, 24 Apr 2020 06:12:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Can-t-close-the-page-after-authentication/m-p/413617#M22327</guid>
      <dc:creator>leninsmannath</dc:creator>
      <dc:date>2020-04-24T06:12:14Z</dc:date>
    </item>
  </channel>
</rss>

