How to call didReceiveRemoteNotification in didfinishlaunchingwithoptions Swift?
<p>How can I call the method didReceiveRemoteNotification in didfinishlaunchingwithoptions? I'm using swift language.
when the user directly opens the app, the notification cancelled and the operations performed in didReceiveRemoteNotification not called. How to handle this ?</p>

<p>I've reached upto here. But unable to complete</p>

<pre><code>if let options = launchOptions, notification = options[UIApplicationLaunchOptionsRemoteNotificationKey] as? [NSObject : AnyObject] {
self.application(application, didReceiveRemoteNotification: notification, fetchCompletionHandler: _______)

        }
</code></pre>