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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:38:11+00:00 2026-06-17T11:38:11+00:00

I am trying add a feature where On certain push, my timer will be

  • 0

I am trying add a feature where On certain push, my timer will be started and even the app is close the timer will continue. Lets say my Points were 10 and now timer started. Once i close the app, maybe next time if i open the app the

1- If before 20 min it will show a count down timer running

2- if after 20 min at app again start it will add point to 10.

Now what Kind of timer or class can help me do this?

Regards

  • 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-17T11:38:12+00:00Added an answer on June 17, 2026 at 11:38 am

    NSTimer will not continue more than 600 seconds even if your app is in background, rest terminating the app.

    you can rather do this:

    NSString *prevTimestamp = [NSString stringWithFormat:@"%d", 
                             [[NSDate date] timeIntervalSince1970]];
    

    store this prevTimestamp in NSUserDefaults, and when coming back to the app,

    NSString *nowTimestamp = [NSString stringWithFormat:@"%d", 
                             [[NSDate date] timeIntervalSince1970]];
    

    time difference will be [nowTimestamp floatValue] - [prevTimestamp floatValue]

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

Sidebar

Related Questions

I'm trying to add a feature to my app that will post a status
I'm trying to add an in-background alarm clock feature to an app I'm developing.
My app parses an online XML file. I am trying to add a feature
I'm trying to add a simple feature to my app, it should simply send
I have been trying to add a feature to my app to get the
I'm trying to add a feature into my app that allows the user to
I am trying to add push notification feature to my application, but i have
I am trying to add a feature in app in which whenever i made
So currently I am trying to add a feature to a userscript I have
I'm trying to add the facebook connect feature to my site, I decided to

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.