Here is what I am trying to do. When I receive the push notification and I tap I want to show a specific screen in my app. I found a lot about it but I am having trouble due to the complexity of the structure of my application. Here is how the app is structured:
- LoginViewController
- RevealViewController(https://github.com/John-Lluch/SWRevealViewController)
- UITabbarController
- NavigationController
- ViewController(This is a table view)
- DetailViewContorller
I want to pass some arguments to the DetailViewContorller so I can make sure I get the right results when opening the screen.
Here is the screenshot of my app structure
application Folow
With the following code in my AppDelegate:
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let tb = storyboard.instantiateViewControllerWithIdentifier("TabBarVC") as! UITabBarController 
tb.selectedIndex = 1
window?.rootViewController? = tb
I have managed to get to the tabbar when tapping on the notification but I am not happy with the results. I am still having the following issues:
- the revealViewControlleris nil so I am not able to open my setting panel
- I still don't get to the DetailViewControllerwhich is at the bottom of my view hierarchy
Any hint will be appreciated.
 
     
     
    