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 7440385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:50:37+00:00 2026-05-29T10:50:37+00:00

I have a weird situation, client does’t want their application to support multitasking so

  • 0

I have a weird situation, client does’t want their application to support multitasking so I created a flag in info.plist like,

Application does not run in background = YES;

However there are times during application lifecycle that the application must upload some data to server before it terminates. If it doesn’t then server will have fuzzy data and my client’s company (and probably me too…) will be doomed!!!

Now my questions are,

  • How much time do I have before OS will terminate my app? Sometimes data can be large to upload and if internet is slow then I might need more time.
  • I saw this method beginBackgroundTaskWithExpirationHandler will this work in my situation. I doubt as this might work if I do support background execution. am I right?

Final questions,

  • Any other options I can think of?
  • should I resign as a iOS developer?

Thanks

  • 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-05-29T10:50:38+00:00Added an answer on May 29, 2026 at 10:50 am

    My advice would be to try something like this:

    [[NSNotificationCenter defaultCenter] 
     addObserver:self 
     selector:@selector(saveWhatever) 
     name:UIApplicationWillTerminateNotification
     object:nil];
    

    Just put that code in the init method of your class. Be sure to remove yourself as an observer in viewDidUnload like this:

    [[NSNotificationCenter defaultCenter] removeObserver:self];
    

    Here you can save whatever you need to save, but I’m not sure about uploading data. Your best bet is to save the data to a file here, and then next time the app is opened upload the data from the file to the server asynchronously. You can try uploading it with this notification, I’m just not sure Springboard is going to wait around for that to happen.

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

Sidebar

Related Questions

I have a weird situation (don't we all?) with datepickers and want to get
have a weird situation. I'm using Glassfish server for my Enterprise application. In that
I have a weird situation where I have created a separate validation class for
I have a weird situation where I open a form from my application, hide
I have a weird situation where a modal popup gets hidden automatically when it
I have encountered a weird situation while updating/upgrading some legacy code. I have a
I have come across a situation (which I think is weird but is possibly
Hi this may seem like a weird question, but here's my situation: I have
I have a weird date rounding problem that hopefully someone can solve. My client
I have a weird situation with AlarmManager. I am scheduling an event with AlarmManager

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.