I have completed a news iOS app, and now i would like to implement a push notifications service. I did everything necessary for this to work and it's working just fine. Now i want the app to perform a specific segue depending on data received from the APNs.
Meaning: When the user clicks on the notification i want the app to perform a segue to go to some UIViewController.
i couldn't do that using the didReceiveRemoteNotification
method in the AppDelegate.m file.
Do i have to make a class (or a singleton class) in order to perform actions after clicking on a notification ?
NOTE: I saw so many questions and answers and i'm kind of lost here, because there are a lot of them.
Thanks in advance.