I want to implement push notification on my app. I am able to send notification to the device. What I want to do is to check whether users open the app by clicking the alert. If yes, I will popup some dialog or show something different based on the content of the alert. I don't know how to do that in my application. I know there is a method as shown below I can override on AppDelegate class. This method will be called when user receives a notification. But I can't know whether user open the app by clicking the alert or not. How can I achieve it?
func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject])