Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Sistemas Eciton
Courses Plus Student 5,422 PointsNotifications IOS
HI everybody, I'm having a problen on an App I developed, where Im trying for a notfication to take the user to an specific part of my app, I have 3 sections that has an especific kind of notificatrion, Ex: Text have a notificaiton when you revie a text, food have an notification where you get food etc... but I'm only achieving that the notifications take the to the root controller of my app, How do I redirect them to the specific part of the app depending of the notificaton the recive. thanks for you time.
1 Answer
Robert Bojor
Courses Plus Student 29,439 PointsHi Sistemas,
Have a look at the Apple Documentation for local notifications... There's a userInfo dictionary you can pass with the notification. I figure you can pass a flag that tells your app where to direct the user once on the root controller. Maybe before the view appears you can check that dictionary for the custom flag...