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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:54:32+00:00 2026-05-22T12:54:32+00:00

i want to set localnotification say for a program which starts at 6:00 pm.For

  • 0

i want to set localnotification say for a program which starts at 6:00 pm.For that i have taken the time in a date variable and i am comparing it with current date from system.

Say setDate is for fixed date i.e 6.00 pm so i have to set firedate such that it shows the notification before 30 mintes the program starts. The examples i have seen in that the firedate is set according to currentdate.

Can someone tell me how can i set firedate according to my fixed date??

  • 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-22T12:54:32+00:00Added an answer on May 22, 2026 at 12:54 pm

    Well then you can handle your local notification in application delegate file when ever you get the notification.
    e.g. here is the delegate method which is fired everytime when you get the local notification.

    - (void)application:(UIApplication *)app didReceiveLocalNotification:(UILocalNotification *)notif {
        //Handle the notificaton when the app is running
        NSLog(@"Recieved Notification %@",notif);
    
    
            UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Hey Neha" message:@"Sanjay wants to be your friend " delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];
            [alertView show];
            [alertView release];
    
            SystemSoundID bell;  
            AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"WhoopFlp" ofType:@"wav"]], &bell);  
            AudioServicesPlaySystemSound (bell);
    
            AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
    
            i=0;
        }
    }
    

    So what I am doing here is simply showing the alert and playing a system sound when my local notification occurs.
    So now what you want is to navigate to the page in the program where you were when you get the local notification.So simply in this delegate method you need to allocate your view controller and need to push the view controller to that view where you want to be.
    That would solve your problem.
    Well i had a similar kind of problem what i wanted is to show the notification in the background and in the front end as well, so writing the 2 different methods in my app was not worthful.so i handled it this way in the delegate method which will show the notification in the front end as well.
    Good luck to you.

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

Sidebar

Related Questions

I have a subclass from control and I want set text for that. When
I want to set something up so that if an Account within my app
I want to set a background image for a div, in a way that
I want set result to variable from MVC controller method. function someFunction(){ var result;
I have actions SomethingEditor, SomethingDelete, SomethingSave, SomethingAdd and i want set these routing: site/Something/Editor,
Here's a simple question. I have a jqGrid that's working great but I want
In WPF, I want set a controls width to be, say, 97% of it's
I want set progress bar until the next activity start.That mean i want to
I want set wallpaper.I have four options.By Daily,by day of week(e.g >every Sunday ),by
How To Set DatePreference Default Value From Java Side. I Want Set to Date

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.