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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:55:40+00:00 2026-05-23T07:55:40+00:00

Iam doing one application/In that i want to get the notification when the application

  • 0

Iam doing one application/In that i want to get the notification when the application is in sleep mode.First it check the condition if condition is satisfied then notiofication will rise.So for this,my code is

if ((f >= [babycrydefault floatForKey:@"keyToSlidervalue"])) {

    UILocalNotification *localNotif = [[UILocalNotification alloc] init];
    localNotif.timeZone = [NSTimeZone defaultTimeZone];
    localNotif.soundName = @"baby_cry-1.wav";
    localNotif.alertLaunchImage=@"baby.png";
    [[UIApplication sharedApplication] scheduleLocalNotification:localNotif];
    [localNotif release];
}

when iam using this code iam not getting any notification.So please inform me if therer is any errors.

  • 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-23T07:55:41+00:00Added an answer on May 23, 2026 at 7:55 am

    First thing: I don’t think you want the code to execute while your app in the background 🙂 The code won’t execute even if you want it to do.

    Second thing: If you don’t set the fireDate the notification will be fired immediately. And if the notification fires while your app is running, the alert will not be displayed. Just the application:didReceiveLocalNotification: method in your app delegate will be triggred.

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

Sidebar

Related Questions

Iam doing one application .In that i want to find out the x,y,z axis
I am doing one application in android for that I need to access com.android.internal.telephony
i am doing one small application , wheich have login functionality, in the user
I am doing a C# application targeting WinXP, Vista, and 7 Operating Systems. One
Hi I am doing one project in JSP with Google application engine. Now I
I have an application in VBA that gives to my VB.Net dll one bi-dimensional
I am very new to grails.I am doing one sample project for image uploading
I am doing a join on two tables. One is a user's table and
I am doing the exact same thing in two classes, and in one the
`hi I am doing a simple synchronous socket programming,in which i employed twothreads one

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.