6

I want to create an app which will automatically upload new photos in the camera roll to my webservice. Just like the auto-upload functionality of the new Flickr app. Currently i'm investigating how to set this up properly.

The new background functions of iOs 7 can make this happen i guess. But is it for example possible to initiate a Background Transfer Service from a Background Fetch? Or are the fetches disabled if the app isn't opened regularly? In that case, how does Flickr do this?

Wouter
  • 71
  • 4
  • I am having the same question. I have read through Apple's documentation on this topic. However, I am still not sure if the best way is to use NSURLSession for the background upload? How can one NSURLSession uploads multiple photos? – user1783732 Jan 06 '15 at 19:02

2 Answers2

0

You shouhld read the documentation from Apple in regards to Background Execution and Multitasking - you can also check out What’s New with Multitasking - Session 204 from WWDC 2013.

cynicaljoy
  • 2,047
  • 1
  • 18
  • 25
0

I am also curious how flickr does that. to answer your question

  1. "is it for example possible to initiate a Background Transfer Service from a Background Fetch". YES!
  2. "are the fetches disabled if the app isn't opened regularly". I don't know how the scheduler actually works but all the people I met said we should not assume the OS will guarantee to do the fetch even once/day. In practice from the log I can see that flickr fetches at least 1 time/hour.
Erben Mo
  • 3,528
  • 3
  • 19
  • 32