Go to the item upon Local Notification

Discussion in 'iOS Programming' started by lincolntran, Feb 3, 2011.

  1. macrumors 6502a


    Jan 18, 2010
    Hi all,

    I got my local notification working so far. When the notification pop up, I click on the "View Details" and my app launch, but only the home screen of the app. I'm trying to go directly to the notified item to show the details but I have no idea how. Can someone give me a direction?

  2. Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    And you've read the Local and Push Notification Programming Guide already, particularly the section on "Handling Local and Remote Notifications"? What, specifically, are you having troubles with? Detecting upon startup whether the user tapped the action button of the alert, or redirecting to the item based on that detection?
  3. thread starter macrumors 6502a


    Jan 18, 2010
    What I'm having problem understanding is that (in my case), the app is navigation based. In order for the user to get to the detail item, he must tap a couple of taps. So, how can I, for lack of better words, "simulate" those taps from application:didReceiveLocalNotification to the detail view.
  4. macrumors 68030


    Sep 2, 2008
    You can pushViewController:animated: For all but the last one that you push make the animated parameter NO. For the last one make it YES, like usual.

    There is also a setViewControllers: method but I've had difficulty making it work correctly.

Share This Page