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

  • Home
  • SEARCH
  • 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 8592541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:46:29+00:00 2026-06-11T23:46:29+00:00

Is it possible to do this? UIApplication’s scheduledLocalNotifications doesn’t seem to return notifications that

  • 0

Is it possible to do this? UIApplication's scheduledLocalNotifications doesn’t seem to return notifications that have already been delivered to the user’s notification center, so I think this may be by design, but I can’t find any documented evidence of this.

Anyone know?

Thanks!

EDIT: Found this:

You can cancel a specific scheduled notification by calling
cancelLocalNotification: on the application object, and you can cancel
all scheduled notifications by calling cancelAllLocalNotifications.
Both of these methods also programmatically dismiss a currently

Here: http://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/IPhoneOSClientImp/IPhoneOSClientImp.html

However, how do I get a reference to an already-delivered notification, if scheduledLocalNotifications doesn’t give me notifications that have already been delivered?

EDIT 2:

Here’s what I’m trying to do, after I’ve registered some notifications:

UIApplication *app = [UIApplication sharedApplication];

for (UILocalNotification *localNotification in app.scheduledLocalNotifications) 
{
     if (someCondition) {
            [app cancelLocalNotification:localNotification];
        }
     }
}

The problem is that once they’re delivered, they’re no longer in ‘scheduledLocalNotifications’.

  • 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-11T23:46:30+00:00Added an answer on June 11, 2026 at 11:46 pm

    You can solve this by adding your newly created notifications to your own NSMutableArray of notifications and check that array instead of app.scheduledLocalNotifications.
    Something like this:

    Add a NSMutableArray to your Viewcontrollers .h file:

    NSMutableArray *currentNotifications;
    

    Initiate it when initiating your ViewController

    currentNotifications = [[NSMutableArray alloc] init];
    

    When initiating a notification, also add it to your array:

    UILocalNotification *notification = [[UILocalNotification alloc] init];
    ...
    [currentNotifications addObject:notification];
    [[UIApplication sharedApplication] presentLocalNotificationNow:notification];
    

    Later when you want to cancel that notification, look for it in your array instead.
    Also remove it from your array:

    for (UILocalNotification *notification in currentNotifications) {
        if (someCondition) {
            [[UIApplication sharedApplication] cancelLocalNotification:notification];
            [currentNotifications removeObject:notification];
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is this possible at all? The idea is to have the following: if ($some_statement)
I have 52 images that is coming from web URL.I want to display this
I have been developing an application for iPad that is very graphically intensive. I
Is it possible to get the message that was displayed to the user via
Just released this morning an app that I tested on all possible devices and
I have an iPhone application with 2 tabs. This is my application delegate: (BOOL)application:(UIApplication
I have a navigation-based application where it is possible for the user to hide
My application is primarily a client for a server that really doesn't have a
i have this at my appdelegate: for 1st app: - (void)applicationDidFinishLaunching:(UIApplication *)application { [window
I have seen quite a few questions about this but cant seem to find

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.