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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:20:18+00:00 2026-06-12T18:20:18+00:00

I pull down a list of meeting dates from a server to my app.

  • 0

I pull down a list of meeting dates from a server to my app. I parse through all of them and save them as NSDates.

It’s easier to give a use case:

  1. User pulls down meeting dates
  2. User navigates to another section of the app
  3. If it is 15min until a respective meeting time, display an alert in whichever view they are in.

I have all of the above working except for a method to notify the app a time is about to start.

I am guessing this is the perfect time for NSNotificationCenter.

So my question is if I have an array of NSDates, how to constantly monitor if one 15 away?

  • 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-12T18:20:21+00:00Added an answer on June 12, 2026 at 6:20 pm

    Use below code to schedule a notification:
    Just give firedate = (date_saved-15minutes)

       UILocalNotification *localNotif = [[UILocalNotification alloc] init];
    
        if (localNotif == nil)
            return FALSE;
    
        localNotif.fireDate = fireDate;
        localNotif.repeatInterval = repeatInterval;
        localNotif.timeZone = [NSTimeZone defaultTimeZone];
    
        localNotif.alertBody = @"Meeting";
    
        // Set the action button
        localNotif.hasAction = YES;
    
        localNotif.alertAction = NSLocalizedString(@"Show",nil); 
    
        localNotif.soundName = UILocalNotificationDefaultSoundName;
    
        localNotif.applicationIconBadgeNumber = 1;
    
    
        /* SCHEDULE NOTIFICATION */
        [[UIApplication sharedApplication] scheduleLocalNotification:localNotif];
    

    Do this too declare a property localNotification in appdelegate.h and intercept notification then like below:

    UILocalNotification *localNotification;
    @property (nonatomic, retain) UILocalNotification *localNotification;
    @synthesize localNotification;
    
    
    - (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification {
    
        self.localNotification = notification;
        NSLog(@"NOTIFICATION - DID RECEIVE");
    }
    
    
    - (void)applicationDidBecomeActive:(UIApplication *)application
    {
        if (self.localNotification) 
        {
             // Do whatever you want
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to pull down xml content from the server using jQuery.post() in
When my app loads, I pull down a JSON representation of 99 objects. Each
I have an ant build script that needs to pull files down from a
I'm trying to crawl FTP and pull down all the files recursively. Up until
I am attempting to pull down data from a JSON response that I wrote
using a drop-down list that's populated from database fields, i need to select an
I have a listbox being populated from a SQLDATA pull, and it pulls down
I'm trying to list the Across and Down clues of a crossword puzzle from
I have a drop down list that reads from the SQL database. depending on
I have a pull down menu of companies that is populated by a list

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.