When my app is running in the background and the app receive a notificaionthe the user can click on the notification. Doing this calls DidReceiveRemoteNotification(...) in AppDelegate.
In DidReceiveRemoteNotification I would like to take the user to a specific viewcontroller. I have tryed several ways but not found something that works.
Method1
UIStoryboard board = UIStoryboard.FromName("Main", null);
SpecificCtrl ctrl = (SpecificCtrl)board.InstantiateViewController("SpecificCtrl");
UINavigationController nav = new UINavigationController(ctrl);
Window.RootViewController.PresentViewController(nav, true, null);
Result: The viewcontroller is loaded but the navigationbar and toolbar are empty. Also there is no way to go back.
Method2
UIStoryboard board = UIStoryboard.FromName("Main", null);
SpecificCtrl ctrl = (SpecificCtrl)board.InstantiateViewController("SpecificCtrl");
Window.RootViewController.PresentViewController(ctrl , true, null);<del
Result: The viewcontroller is loaded but the navigationbar and toolbar are not present
Question
Do you have any suggestions? The storyboard is found, the specificctrl have storyboard id specified and the navigation actually work. But somehow the navigationbar and toolbar are not loaded properly