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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:19:38+00:00 2026-06-17T16:19:38+00:00

Is there a preferred method when, upon receiving a notification in application:didReceiveLocalNotification: , I

  • 0

Is there a preferred method when, upon receiving a notification in application:didReceiveLocalNotification:, I bring the user to a certain view controller*?

For example, if I have view controllers A, B, C, and D, a notification comes in, the app is running in the background with the user at screen A, B, or C, and I need to bring them to screen D, and back to their previous screen when they’re done.

One method seems to be making A, B, C delegates of D, hooking them up with segues in storyboard, and doing performSegueWithIdentifier: in application:didReceiveLocalNotification:, but that doesn’t scale well if I have ex. 60 screens.

Is there a better/best way to push a view controller on the screen from the AppDelegate and go back to wherever the user was previously when they’re finished?

*Note this will not occur if the user is currently inside app, so as not to be disruptive.

  • 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-17T16:19:39+00:00Added an answer on June 17, 2026 at 4:19 pm

    Normally that kind of behavior is best achieved with modal view controllers.

    However I wouldn’t pop a modal view controller from the appDelegate but instead I’d make A, B and C subclasses of the same class. This class would have code to handle the notification by showing a modal view controller (with D) that when dismissed will show the view controller where you were when the notification came.

    Though I don’t understand your last sentence. If that’s not going to happen when the user is inside the app why you bother to get him back to the previous screen?

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

Sidebar

Related Questions

Is there a preferred method of gracefully upgrading a web site? I have a
Is there a (or, do you have your own) preferred way to do background
Is there a preferred method of packaging Windows Mobile apps? Visual Studio creates an
Is there a preferred method of updating bashrc to find the location of xcodebuild
What is the preferred method for reading/writing to TCP/IP sockets in PHP? There are
Is there a preferred algorithm for converting a 2-digit year into a 4-digit year?
Is there a preferred (not ugly) way of outputting a list length as a
I was having a debate on this with some colleagues. Is there a preferred
Doing a mysqli query and COUNTing the results, is there a preferred comparison operator
Is there any reliable and simple priority queue (linked list preferred, not necessary) implementation

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.