I have implemented my didReceiveRemoteNotification method. It works and displays a view controller with the notification data which is passed through. This only works when the a
Swift Code
let remoteNotif: AnyObject? = launchOptions?[UIApplicationLaunchOptionsRemoteNotificationKey]
//Accept push notification when app is not open
if ((remoteNotif) != nil) {
self.handleRemoteNotification(remoteNotif!)
}
func handleRemoteNotification(remoteNotif: AnyObject?){
//handle your notification here
}
@Eran thanks :)