<?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: Downloading in the background in iOS (Swift) in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/468560#M23884</link>
    <description>&lt;P&gt;I use&amp;nbsp;6.0.3 version of SwiftyDropbox. No, I don't get any error. When I return to the app I see that download isn't complete. If you look at my code you'll see that I have completion handler which works when dowload is complete, and after return to the app I see that it didn't work.&lt;/P&gt;&lt;P&gt;Also in the downloadFile func I get download progress (&lt;SPAN&gt;I didn't include it in the question so as not to complicate&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;.&lt;SPAN&gt;progress&lt;/SPAN&gt; { progressData &lt;SPAN&gt;&lt;STRONG&gt;in&lt;/STRONG&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; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;/SPAN&gt; progress = &lt;SPAN&gt;Double&lt;/SPAN&gt;(progressData.&lt;SPAN&gt;fractionCompleted&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; &lt;/SPAN&gt;completion(progress)&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; &lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(progress)&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;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I start downloading a file and then minimize the application, then I'll see that progress stops and it doesn't start again if I return to the app&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2020 07:09:09 GMT</pubDate>
    <dc:creator>VyacheslavBakinskiy</dc:creator>
    <dc:date>2020-11-10T07:09:09Z</dc:date>
    <item>
      <title>Downloading in the background in iOS (Swift)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/467860#M23855</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, I'm using file download from Dropbox in my app. It works fine when app is active, but if my app goes into the background the download stops.&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;How can I solve it?&lt;/SPAN&gt; &lt;SPAN&gt;I use this code to download:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;private&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;client&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;DropboxClientsManager&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;authorizedClient&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;func&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;downloadFile&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;_&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; file: &lt;/SPAN&gt;TrackModelProtocol&lt;SPAN&gt;?&lt;/SPAN&gt;,&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;callback: &lt;SPAN&gt;&lt;STRONG&gt;@escaping&lt;/STRONG&gt;&lt;/SPAN&gt; () -&amp;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;&lt;SPAN&gt;&lt;STRONG&gt;guard&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;/SPAN&gt; path = file?.&lt;SPAN&gt;path&lt;/SPAN&gt;, &lt;SPAN&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;/SPAN&gt; pathComponent = file?.&lt;SPAN&gt;fileName&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;else&lt;/STRONG&gt;&lt;/SPAN&gt; { &lt;SPAN&gt;&lt;STRONG&gt;return&lt;/STRONG&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;&lt;/SPAN&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;&lt;SPAN&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;/SPAN&gt; client = &lt;SPAN&gt;client&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; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;/SPAN&gt; fileManager = &lt;SPAN&gt;FileManager&lt;/SPAN&gt;.&lt;SPAN&gt;default&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; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;/SPAN&gt; directoryURL = fileManager.&lt;SPAN&gt;urls&lt;/SPAN&gt;(for: .&lt;SPAN&gt;documentDirectory&lt;/SPAN&gt;, in: .&lt;SPAN&gt;userDomainMask&lt;/SPAN&gt;)[&lt;SPAN&gt;0&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; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;/SPAN&gt; destURL = directoryURL.&lt;SPAN&gt;appendingPathComponent&lt;/SPAN&gt;(pathComponent)&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;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;/SPAN&gt; destination: (&lt;SPAN&gt;URL&lt;/SPAN&gt;, &lt;SPAN&gt;HTTPURLResponse&lt;/SPAN&gt;) -&amp;gt; &lt;SPAN&gt;URL&lt;/SPAN&gt; = { temporaryURL, response &lt;SPAN&gt;&lt;STRONG&gt;in&lt;/STRONG&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;&lt;SPAN&gt;&lt;STRONG&gt;return&lt;/STRONG&gt;&lt;/SPAN&gt; destURL&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;/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;client.&lt;SPAN&gt;files&lt;/SPAN&gt;.&lt;SPAN&gt;download&lt;/SPAN&gt;(path: path, overwrite: &lt;SPAN&gt;&lt;STRONG&gt;true&lt;/STRONG&gt;&lt;/SPAN&gt;, destination: destination)&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;.&lt;SPAN&gt;response&lt;/SPAN&gt; { &lt;SPAN&gt;&lt;STRONG&gt;_&lt;/STRONG&gt;&lt;/SPAN&gt; , error &lt;SPAN&gt;&lt;STRONG&gt;in&lt;/STRONG&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;&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; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;if&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;/SPAN&gt; error = error{&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; &lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Downloading from Dropbox fails: &lt;/SPAN&gt;\(error)&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; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;return&lt;/STRONG&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; &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; &lt;/SPAN&gt;&lt;/SPAN&gt;//Call some&amp;nbsp;&lt;SPAN&gt;action after the download is complete&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; &lt;/SPAN&gt;callback()&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;}&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/P&gt;</description>
      <pubDate>Sat, 07 Nov 2020 08:00:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/467860#M23855</guid>
      <dc:creator>VyacheslavBakinskiy</dc:creator>
      <dc:date>2020-11-07T08:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading in the background in iOS (Swift)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/468368#M23866</link>
      <description>&lt;P&gt;Thanks for the report. First, can you let me know the version number of the SwiftyDropbox SDK you're using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, when you say "the download stops", do you get any error or output? And, do you get any result when you return to the app?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 16:33:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/468368#M23866</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-09T16:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading in the background in iOS (Swift)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/468560#M23884</link>
      <description>&lt;P&gt;I use&amp;nbsp;6.0.3 version of SwiftyDropbox. No, I don't get any error. When I return to the app I see that download isn't complete. If you look at my code you'll see that I have completion handler which works when dowload is complete, and after return to the app I see that it didn't work.&lt;/P&gt;&lt;P&gt;Also in the downloadFile func I get download progress (&lt;SPAN&gt;I didn't include it in the question so as not to complicate&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;.&lt;SPAN&gt;progress&lt;/SPAN&gt; { progressData &lt;SPAN&gt;&lt;STRONG&gt;in&lt;/STRONG&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; &lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;let&lt;/STRONG&gt;&lt;/SPAN&gt; progress = &lt;SPAN&gt;Double&lt;/SPAN&gt;(progressData.&lt;SPAN&gt;fractionCompleted&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; &lt;/SPAN&gt;completion(progress)&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; &lt;/SPAN&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(progress)&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;}&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I start downloading a file and then minimize the application, then I'll see that progress stops and it doesn't start again if I return to the app&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 07:09:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/468560#M23884</guid>
      <dc:creator>VyacheslavBakinskiy</dc:creator>
      <dc:date>2020-11-10T07:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading in the background in iOS (Swift)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/468711#M23895</link>
      <description>&lt;P&gt;Thanks for the additional information. I just tried reproducing this with the code you provided. While I also see the progress reporting stop when the app is sent to the background, if I then bring it back to the foreground the download does then resume and complete.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you let me know how long you're leaving the app in the background before resuming it?&amp;nbsp;Also, what version(s) of iOS are you seeing this with?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 16:15:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/468711#M23895</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-10T16:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading in the background in iOS (Swift)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/468712#M23896</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I leave the application in the background for a few seconds.&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;I also tried leaving it on for a few minutes.&lt;/SPAN&gt; &lt;SPAN&gt;The result is the same.&lt;/SPAN&gt; &lt;SPAN&gt;I'm using iOS 14.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 16:19:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/468712#M23896</guid>
      <dc:creator>VyacheslavBakinskiy</dc:creator>
      <dc:date>2020-11-10T16:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading in the background in iOS (Swift)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/468737#M23897</link>
      <description>&lt;P&gt;Thanks! That's the same as my test setup though, so I'm still not sure why you're seeing a different behavior.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see you included a line for defining your client object ("private let client..."), but where exactly are you running that? The issue may be related to the lifecycle of that object. If it's no longer available, the operation may not complete. If you try using&amp;nbsp;DropboxClientsManager.authorizedClient directly, does that change the behavior?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Likewise, is it possible your app is just getting terminated entirely when its in the background? You may want to add some logging to see what's happening in the lifecycle of the app.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 17:52:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/468737#M23897</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-10T17:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading in the background in iOS (Swift)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/468746#M23898</link>
      <description>&lt;P&gt;I tried to use&amp;nbsp;DropboxClientsManager&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;authorizedClient&lt;/SPAN&gt;&lt;SPAN&gt;?.&lt;/SPAN&gt;&lt;SPAN&gt;files&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;download&lt;/SPAN&gt;&lt;SPAN&gt;(...) dicectly but it doesn't solve issue. I sure that my app doesn't&amp;nbsp;getting terminated entirely because I also downloading from Google Drive in the similar conditions and it works fine.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The&amp;nbsp;&lt;/SPAN&gt;downloadFile&amp;nbsp;&lt;SPAN&gt;function is a function of the Protocol under which classes for working with Dropbox and Google Drive are signed, and if the problem was in these classes or functions, then I'd have the same problem with downloading from Google Drive.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Suggest me some other solutions, pls, I'm desperate.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 18:33:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/468746#M23898</guid>
      <dc:creator>VyacheslavBakinskiy</dc:creator>
      <dc:date>2020-11-10T18:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading in the background in iOS (Swift)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/468764#M23900</link>
      <description>&lt;P&gt;Ok, in that case we'll have to look into it further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do still&amp;nbsp;recommend adding some more logging though. The comparison with Google Drive may not be exactly representative&amp;nbsp;since that may use a different mechanism than the&amp;nbsp;Dropbox SDK.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 19:26:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/468764#M23900</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-10T19:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading in the background in iOS (Swift)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/468769#M23901</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Of course I'll look at my code and xcode log again, but I'll also wait for a decision from your side in this topic.&lt;BR /&gt;PS&amp;nbsp;Another reason I'm sure my app doesn't shut down in the background is because it keeps playing music.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 19:38:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/468769#M23901</guid>
      <dc:creator>VyacheslavBakinskiy</dc:creator>
      <dc:date>2020-11-10T19:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading in the background in iOS (Swift)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/469294#M23918</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello, Greg! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have new information regarding my question. On what do you run the code on a real device or on the Xcode simulator? I've always tested on a real device and was getting this issue. I decided to test it on the simulator and was very surprised that the download works fine on it. I also noticed that when I run the code on a real device - I get this issue, but if I then click to download another file, then I'll see that the first file is immediately downloaded, as if it had already been downloaded, but the completion handler didn't work.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;What could be the issue?&lt;/SPAN&gt; &lt;SPAN class="JLqJ4b ChMk0b"&gt;&lt;SPAN&gt;Why does it work fine on the simulator?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;P.S. This issue happens only in case when device connected to the PC (Xcode), when I run app without connection to the PC the download works fine.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 15:12:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/469294#M23918</guid>
      <dc:creator>VyacheslavBakinskiy</dc:creator>
      <dc:date>2020-11-12T15:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading in the background in iOS (Swift)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/469383#M23920</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I tested my application a little more and realized that this problem only occurs when the device is connected to a PC (Xcode), if I disconnect the device from the PC, then the download works fine.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 15:28:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/469383#M23920</guid>
      <dc:creator>VyacheslavBakinskiy</dc:creator>
      <dc:date>2020-11-12T15:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Downloading in the background in iOS (Swift)</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/469417#M23924</link>
      <description>&lt;P&gt;I've been testing on a physical device. I've also had it connected to my computer though, to&amp;nbsp;receive the output in Xcode. I'm not sure why that would interfere&amp;nbsp;in your case, but I'm glad to hear it is working for you otherwise.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 16:53:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Downloading-in-the-background-in-iOS-Swift/m-p/469417#M23924</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-12T16:53:11Z</dc:date>
    </item>
  </channel>
</rss>

