0

If a user is already logged in, I want to open my HomeViewController; and if a user clicks on a push notification, I want to open my NotificationViewController.

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:    [UIApplication.LaunchOptionsKey: Any]?) -> Bool {

    // What's code write for this functionality.

    return true
    }

Xcode 11.3.1
iOS 13

NicolasElPapu
  • 1,414
  • 2
  • 10
  • 24
  • 1
    You can go through this for reference, https://stackoverflow.com/questions/20757362/open-a-view-controller-when-a-ios-push-notification-is-received/20757676 – Vinayaka S Y May 18 '20 at 14:07