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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:13:33+00:00 2026-05-27T10:13:33+00:00

I am new to iphone Programming . I am using localNotification in my application.It

  • 0

I am new to iphone Programming . I am using localNotification in my application.It is giving alert to user and responding to Launch using didReceiveLocalNotification.But my problem is if user close the UILocalNotification in my Application i need to execute database operation .So how can i do that .Is there any approach for that one.

UILocalNotification *localNotification = [[UILocalNotification alloc] init]; 
    NSDate* now = [NSDate date];
    [localNotification setFireDate:now];
    localNotification.soundName=@"Tink.wav";

    [localNotification setAlertAction:@"Launch"]; 
    [localNotification setAlertBody:@"You have entered to Your Place:"]; 
    [localNotification setHasAction: YES]; 
    NSDictionary *userDict = [NSDictionary dictionaryWithObject:@"obj" forKey:kRemindMeNotificationDataKey];
    localNotification.userInfo = userDict;



- (void)application:(UIApplication *)app didReceiveLocalNotification:(UILocalNotification *)notif {
    NSLog(@"Recieved Notification");

    NSString *DateString=[notif.userInfo valueForKey:kRemindMeNotificationDataKey];
    if([DateString isEqualToString:@"obj"])
    { 
        [[UIApplication sharedApplication] cancelLocalNotification:notif];
    }

    NSString *strNotif=[notif.userInfo objectForKey:kRemindMeNotificationDataKey];
if ([strNotif isEqualToString:@"obj"]) {
    UIAlertView *alretCheck=[[UIAlertView alloc]initWithTitle:@"notifi Testing in DidRec+" message:strNotif  delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
    [alretCheck show];
    [alretCheck release];
}

Thanking you in advance.

  • 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-27T10:13:34+00:00Added an answer on May 27, 2026 at 10:13 am

    Now Acc. to my Knowledge we cannot do that what you want. we only have command on the “View” Option of LocalNotification Alert. But if possible u can do one thing onClick on “View” button u can Show an ActionSheet or another alert and on those buttons you can handle all the event you want.

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

Sidebar

Related Questions

i am new to iPhone programming..can anybody help me out from the following problem
I am new to iPhone programming and working on my first real application (i.e.
I'm quite new in iPhone Programming, but I'm trying to do my best cause
I am using this http://imthi.com/blog/programming/iphone-rss-reader-application-with-source-code.php as a start for my rss reader in my
I'm new to iPhone programming, so I might not even be using the correct
I am new in iphone programming. I am making an application in which I
I am quite new to Cocoa and to iPhone programming. I am using the
I'm pretty new to iphone programming. I have come up with a problem when
I'm new in iPhone programming but I have a good grounding in Java and
I'm very new to iPhone programming, so my problem might be caused by total

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.