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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:23:13+00:00 2026-05-13T09:23:13+00:00

I am sending Push Notifications to my iPhone app, and I’d like a different

  • 0

I am sending Push Notifications to my iPhone app, and I’d like a different set of instructions to execute depending on whether the app is already launched or not. I’m new to iPhone development, and while I suspect UIApplication or my project’s AppDelegate class has the solution, I haven’t found a good answer. Is there an easy way to check for this?

  • 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-13T09:23:13+00:00Added an answer on May 13, 2026 at 9:23 am

    The UIApplication delegate has the method

    - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo
    

    which you need to implement. This receives the notification when the app is running.

    If your app is not currently running and a notification is received then your app can be launched with

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    

    with the notification details held in the launchOptions dictionary. if the dictionary is nil then the user tapped the application icon as normal.

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

Sidebar

Related Questions

I am sending push notifications from php job application to iphone. I am sending
I'm trying to mimic a pager with my app by sending push notifications to
We added Push Notifications to our App but we need help with sending the
I have an iPhone app sending notifications and everything is working fine... Except sometimes
I'd like to push all users sending a request to a particular subdirectory back
I am sending a request dialog like this: [delegate.facebook dialog:@apprequests andParams:params andDelegate:self]; The notifications
I am sending Push notification from PHP to iPhone. Connection was established successfully but
I've not yet implemented push notifications in my app. My understanding is that the
I have an app on Appstore, enabled for push notifications. I revoked and renewed
Is there a way to set up how users see the push notifications alert

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.