Swift 3 present view from appdelget when application was off
问题 when the user opening the push notification i present view from appdelget by this code func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { application.applicationIconBadgeNumber = 0; // Clear badge when app is launched if UserDefaults.standard.bool(forKey: "PushOFF") == false { registerForRemoteNotification() } else { UIApplication.shared.unregisterForRemoteNotifications() } return true } func