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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:53:56+00:00 2026-05-24T21:53:56+00:00

I have a UILocalNotification set up, and as far as i can see it

  • 0

I have a UILocalNotification set up, and as far as i can see it i have 5 different scenarios:

  1. The app is not running, the user chooses to view the notification, so it launches the app.
  2. The app is not running, the user chooses to close the notification, then opens the app at a later date.
  3. The app is running in the background, the user chooses to view the notification, so it brings the app to the foreground.
  4. The app is running in the background, the user chooses to close the notification, then opens the app bringing it to the foreground at a later date.
  5. The app is running in the foreground.

How do i deal with these 5 different scenarios?

  • 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-24T21:53:57+00:00Added an answer on May 24, 2026 at 9:53 pm
    1. Put your code into application:didFinishLaunchingWithOptions:. In
      the actions NSDictionary you will find the information about the
      notification.

    2. You can again check in application:didFinishLaunchingWithOptions: if the local
      notification is still active and take appropriate action.

    3. Put your code into applicationWillEnterForeground:

    4. Again the same spot, just check if there are active local notifications.

    5. Here you can check in application:didReceiveLocalNotification: and either notify the user or not.

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

Sidebar

Related Questions

I have an application in which i have set a local notification in my
I have UILocalNotification the has two buttons a cancel and view button when the
If a UILocalNotification fires with a sound set, and the user taps Cancel on
guys :) I have an iOS alarm app, which uses UILocalNotification-s to schedule the
I have a notification that needs to repeat daily. It can be turned off
I am showing a local notification when an event occurs.If user select View details
Have an app that can use tts to read text messages. It can also
I have an iPhone App in which i am using to fire UILocalnotification daily,
I have a method that activates a local notification. UILocalNotification *localNotif = [[UILocalNotification alloc]
I have a view controller which contains a field for user to enter 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.