<?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: iOS SwiftyDropbox - login problem in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-SwiftyDropbox-login-problem/m-p/532345#M25664</link>
    <description>&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;The problem occurs if I make the mentioned steps quickly: login, logout, login, ...&lt;/P&gt;&lt;P&gt;It works properly if I wait few seconds (5-10s) before trying to login next time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also the problem doesn't occur on every device, e.g. on iPad Pro 9,7'' (2016) or iPad Air (2013) it doesn't occur. But it occurs for example on the following devices: &lt;SPAN&gt;iPad Pro 12.9'' 4th gen (2020), iPad Pro 10.5'' (2017),&lt;/SPAN&gt;&amp;nbsp;iPhone 7 plus, iPhone 6 plus. (all mentioned devices with newest iOS 14.6)&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jul 2021 07:22:23 GMT</pubDate>
    <dc:creator>Lukasz_Nestor</dc:creator>
    <dc:date>2021-07-13T07:22:23Z</dc:date>
    <item>
      <title>iOS SwiftyDropbox - login problem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-SwiftyDropbox-login-problem/m-p/531751#M25658</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to integrate SwiftyDropbox (newest version 7.0.1 built as xcframework, running on iPad/iPhone with iOS 14.6) into my application ExplainEverything (current store version uses old version of Dropbox SDK -&amp;nbsp;ObjectiveDropboxOfficial &lt;SPAN&gt;3.7.0 and it works without any problems&lt;/SPAN&gt;).&lt;BR /&gt;&lt;BR /&gt;I have problem with the authorizing with SwiftyDropbox. I'm using the following code to login:&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;let&lt;/SPAN&gt; scopeRequest = ScopeRequest(scopeType: .&lt;SPAN&gt;user&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;scopes: [&lt;/SPAN&gt;"files.metadata.read"&lt;SPAN&gt;, &lt;/SPAN&gt;"files.content.read"&lt;SPAN&gt;, &lt;/SPAN&gt;"files.content.write"&lt;SPAN&gt;, &lt;/SPAN&gt;"account_info.read"&lt;SPAN&gt;],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;includeGrantedScopes: &lt;SPAN&gt;false&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;DropboxClientsManager.authorizeFromControllerV2(&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;UIApplication&lt;SPAN&gt;.&lt;/SPAN&gt;shared&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;controller: controller,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;loadingStatusDelegate: &lt;SPAN&gt;nil&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;openURL: { url &lt;SPAN&gt;in&lt;/SPAN&gt; &lt;SPAN&gt;UIApplication&lt;/SPAN&gt;.&lt;SPAN&gt;shared&lt;/SPAN&gt;.&lt;SPAN&gt;open&lt;/SPAN&gt;(url, &lt;SPAN&gt;options&lt;/SPAN&gt;: [:], &lt;SPAN&gt;completionHandler&lt;/SPAN&gt;: &lt;SPAN&gt;nil&lt;/SPAN&gt;) },&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;scopeRequest: scopeRequest&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;)&lt;BR /&gt;```&lt;BR /&gt;For logout I use:&lt;BR /&gt;```&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;DropboxClientsManager.unlinkClients()&lt;BR /&gt;```&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It works fine for the first time. The authorizing is successfull and all another requests works also properly, e.g. listing folders, download/upload file. But if I logout and then try to login again, the SDK returns error - `SwiftyDropbox.OAuth2Error error 11. The operation couldn't be completed. &amp;nbsp;`. The next try is successful and the next next try returns error. So it works like: success, failure, sucess, failure, ...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The error occurs if I have Dropbox application installed on my device (official app from App Store). So the login process uses this app.&lt;/P&gt;&lt;P&gt;It doesn't occur without this application being installed (the SDK uses internally SFSafariViewController then).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can You give me some advice what I'm doing wrong or is this some kind of known issue?&lt;BR /&gt;Thanks,&amp;nbsp;Łukasz&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 16:37:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-SwiftyDropbox-login-problem/m-p/531751#M25658</guid>
      <dc:creator>Lukasz_Nestor</dc:creator>
      <dc:date>2021-07-08T16:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: iOS SwiftyDropbox - login problem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-SwiftyDropbox-login-problem/m-p/531966#M25660</link>
      <description>&lt;P&gt;Thanks for the detailed report! We'll look into it.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 16:03:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-SwiftyDropbox-login-problem/m-p/531966#M25660</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-07-09T16:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: iOS SwiftyDropbox - login problem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-SwiftyDropbox-login-problem/m-p/532345#M25664</link>
      <description>&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;The problem occurs if I make the mentioned steps quickly: login, logout, login, ...&lt;/P&gt;&lt;P&gt;It works properly if I wait few seconds (5-10s) before trying to login next time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also the problem doesn't occur on every device, e.g. on iPad Pro 9,7'' (2016) or iPad Air (2013) it doesn't occur. But it occurs for example on the following devices: &lt;SPAN&gt;iPad Pro 12.9'' 4th gen (2020), iPad Pro 10.5'' (2017),&lt;/SPAN&gt;&amp;nbsp;iPhone 7 plus, iPhone 6 plus. (all mentioned devices with newest iOS 14.6)&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 07:22:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-SwiftyDropbox-login-problem/m-p/532345#M25664</guid>
      <dc:creator>Lukasz_Nestor</dc:creator>
      <dc:date>2021-07-13T07:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: iOS SwiftyDropbox - login problem</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-SwiftyDropbox-login-problem/m-p/532921#M25686</link>
      <description>&lt;P&gt;Thanks for following up with the additional information!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 15:21:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/iOS-SwiftyDropbox-login-problem/m-p/532921#M25686</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2021-07-14T15:21:34Z</dc:date>
    </item>
  </channel>
</rss>

