View Full Version : Go to the item upon Local Notification
Feb 3, 2011, 09:19 AM
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?
Feb 3, 2011, 09:41 AM
And you've read the Local and Push Notification Programming Guide (http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html) 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?
Feb 3, 2011, 10:38 AM
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.
Feb 3, 2011, 12:31 PM
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.