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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:21:24+00:00 2026-06-18T06:21:24+00:00

I am currently writing my app that makes a connection to parse the time

  • 0

I am currently writing my app that makes a connection to parse the time from a website, and then triggers a timer for 60 seconds. After that 60 seconds it reloads the connection, and gets the newest time from the site.

I am trying to make it so, when the app goes into the background and then comes to the foreground, it knows to start a new connection right away. I am doing this with NSNotification.

But reading through the docs, I dont know which one i should use

UIApplicationDidBecomeActiveNotification

or

UIApplicationWillEnterForegroundNotification

are there any big differences between these to, and any situations where one should be called instead of the other.

The only thing I can think of, is with NSURL connections, I should maybe use WillEnterForeground, so it starts to get things rolling as the view is coming back. Or is that the wrong way to think about it, that I should wait until my view is fully loaded before trying to do any thing with loading data.

  • 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-18T06:21:26+00:00Added an answer on June 18, 2026 at 6:21 am

    They are different.

    UIApplicationWillEnterForegroundNotification will NOT be posted when from sleep mode or call, but only when do multi-task operation.

    UIApplicationDidBecomeActiveNotification will be posted when the phone returns to your app from sleep mode or from other app (finished an incoming call or clicked OK button of low battery warning). It will also be called when your app come back from background.

    In your situation, I think use UIApplicationDidBecomeActiveNotification will be better.

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

Sidebar

Related Questions

I am currently writing an app that should display a real time measurement curve
I'm currently writing a simple app that performs a series of requests to the
I am currently writing an Android app that, among other things, uses text information
I'm currently writing a Java app that interfaces with a MySQL database. My problem
I'm currently writing an app in Android that works with the GPS. At the
I am currently writing a simple IOS app that saves tasks into a table.
I am currently writing an app in python that needs to generate large amount
I'm currently writing a small app that takes data provided by an SQL stored
I am currently writing an iOS App that uses RestKit to talk to an
I'm writing an app that requires getting input from the user, passing it off

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.