Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lincolntran

macrumors 6502a
Original poster
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?



Thanks
 
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?
 
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.
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.