We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to push specific view controller from push notification in SWRevealViewController ? For now i can only set to homeVC how to push to anotherVC ?
//Handle payload data from push notification
func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any]) { let storyboard = UIStoryboard(name: "Main", bundle: nil) let sw = storyboard.instantiateViewController(withIdentifier: "revealControllerStoryboard") as! SWRevealViewController self.window?.rootViewController = sw }
The text was updated successfully, but these errors were encountered:
Can you try this.. It will helps you.
let storyboard = UIStoryboard(name: "Main", bundle: nil) let sw = storyboard.instantiateViewController(withIdentifier: "RevealViewController") as! SWRevealViewController self.window?.rootViewController = sw
let destinationController = storyboard.instantiateViewController(withIdentifier: "NotificationViewController") as! NotificationViewController let navigationController = UINavigationController(rootViewController: destinationController) sw.pushFrontViewController(navigationController, animated: true)
Sorry, something went wrong.
i already tried that not working still go to home if i push to specific VC
Can you try this.. It will helps you. let storyboard = UIStoryboard(name: "Main", bundle: nil) let sw = storyboard.instantiateViewController(withIdentifier: "RevealViewController") as! SWRevealViewController self.window?.rootViewController = sw let destinationController = storyboard.instantiateViewController(withIdentifier: "NotificationViewController") as! NotificationViewController let navigationController = UINavigationController(rootViewController: destinationController) sw.pushFrontViewController(navigationController, animated: true)
Thank's this worked for me.
No branches or pull requests
How to push specific view controller from push notification in SWRevealViewController ?
For now i can only set to homeVC how to push to anotherVC ?
//Handle payload data from push notification
The text was updated successfully, but these errors were encountered: