Best practice for daily iOS app to cloud sync?

I have a background app that has to upload small amount of data (several kb) to the cloud every day. In your opinion what is the best way to trigger the upload?

Should I trigger it at specific time of the day or at some other event? What if the upload fails (airplane mode) - how long should I wait before I try again?

My app gets awaken every time the phone detects a region change (cell tower change), so I could use that as event. My main concern is battery usage.

Thanks, Ventsi

1 Answer

  1. Francis- Reply


    Do it every 24 hours. In case it fails (no coverage?), try again on cell tower change. If this has succeeded once, revert back to 24 hour timer.

Leave a Reply

Your email address will not be published. Required fields are marked *

You can use these HTML tags and attributes <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>