Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8081115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:37:43+00:00 2026-06-05T16:37:43+00:00

I want to create a simple app, where the user can take a photo.

  • 0

I want to create a simple app, where the user can take a photo. The critical thing is that I need to guarantee that the photo gets uploaded to our server as soon as possible. This must be true, even if the photo was taken, while there was no internet connection, or even if the battery runs dry in the middle of the uploading, or any other scenario you can think of.

The easiest way to solve this is by using a progress bar, but I really do not want my users to wait unnecessarily.

It is not good enough that the photo will get uploaded the next time the app is started, as I need the photo as fast as possible.

My question is, whether it is possible to guarantee that the photo gets uploaded in the background?

This question is somewhat similar, but I do not have anything to use the location for, so the app would probably get rejected my the App Store.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T16:37:46+00:00Added an answer on June 5, 2026 at 4:37 pm

    In a nutshell: you cannot guarantee anything. You can only try and hope it gets uploaded, there are some things you can do to maximise your chance but if there’s no connectivity for a long period there’s nothing you can do given the constraints you mention.

    You can only execute the upload while the app is in the foreground.

    Unless you have a background type – as you’ve guessed if you’re pretending to have location, or one of the other types, and you don’t, then you’ll be rejected.

    So the only other option you have available is to make use of beginBackgroundTaskWithExpirationHandler.

    This will give you about 10 minutes to execute in the background once the user has tasked away from your app (but if they terminate the app there’s nothing you can do).

    If there is no connectivity while the app is in the foreground + the extra 10 minutes once its moved to the background there is nothing you can do other than try again next time the app starts.

    Use the Reachability class to see if there is reachability to the url, if so try and upload it, if not register for notification of change in the reachability status and as soon as reachability appears try to upload it again.

    If you have reachability try and upload it, if there is a network failure just keep retrying until the 10 minutes is up.

    P.S.
    How can you possibly expect to guarantee it gets uploaded when the battery runs out?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to create a simple app that shows me the city of the
I want to create a simple desktop admin application for an IOS app that
I want to create simple app able to edit images. Main view of app
I want to create a simple login functionality in WP7 app using remote MySQL
JavaScript. I want to create simple script, that will be resize loaded image using
I want to create a simple user registration form with First / Last name,
I'm developing a web-app where the user can create multiple related elements and then
Ultimately I want to create a desktop app that allows users to update their
I have developing an App where the user can create event and set notification
I want to create a simple app which shows infos on the global quick

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.