Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Dropbox Carousel sync when the app is closed and force-quit?

I've been trying to find information about this but can't seem to find anything. I have a few ideas that I'd like to implement and was hoping that I could do background sync even when app isn't in the app switcher. This Stack Qverflow question seems to say that iOS will not let the app wake up and perform tasks if it was force quit by the user. I gave up on that idea, until now.

I have recently installed Dropbox Carousel and have been using it for automatic photo uploads. I expected that I'd have to open the app every once in a while for the photos to upload to Dropbox. However, with it completely closed (force-quitted), while I was at my computer I noticed files being added to Dropbox.

Somehow, Carousel is uploading photos in the background even if the app is nowhere in the app switcher. How is Dropbox able to do it? Am I missing something?

I've noticed this behaviour intermittently, it isn't like a photo immediately uploads, but at certain intervals a batch get uploaded without opening the app at all and without any action by me (the phone was just connected to WiFi with the screen off).

like image 644
kolossal7 Avatar asked Jan 14 '15 04:01

kolossal7


People also ask

Does Dropbox run in the background?

You can also use Dropbox to trigger automations with literally thousands of apps, so you can do things like automatically save email attachments or manage your social media files. That means interacting with the app even less, while your Dropbox-related tasks run in the background.

What happened to Dropbox Carousel?

In light of that, we've made the difficult decision to shut down Carousel and Mailbox. The Carousel and Mailbox teams have built products that are loved by many people and their work will continue to have an impact. We'll be taking key features from Carousel back to the place where your photos live—in the Dropbox app.

How do I keep Dropbox from running in the background?

Check your background settings On your phone, open your Settings. Select the Dropbox app. Be sure Background app refresh is enabled.

How do I upload videos from my iPhone to Dropbox?

Open the Dropbox mobile app. Open the Dropbox folder where you'd like to store your files. Tap the "+" (plus sign) at the bottom of your screen. Tap Upload files (Android) or Create or Upload File (iPhone/iPad).


1 Answers

My best guess is Carousel (and all iOS apps with similar background uploading) uses the Significant-Change Location Service to do the background uploading. This service wakes up the app even if it has been terminated (force-quit).

If you leave the significant-change location service running and your iOS app is subsequently suspended or terminated, the service automatically wakes up your app when new location data arrives. At wake-up time, the app is put into the background and you are given a small amount of time (around 10 seconds) to manually restart location services and process the location data.

The Carousel docs drop additional hints that they're using this technique: "significant change in your iPhone's location".

like image 193
mpoisot Avatar answered Sep 28 '22 05:09

mpoisot