 
         window = UIWindow(frame: UIScreen.main.bounds)
 
-        for config in postWindowConfigurations where config.isEnabled {
+        configureRootViewController(animated: false)
+        window?.makeKeyAndVisible()
+
+        for config in rootViewControllerDependentConfigurations where config.isEnabled {
             config.onDidLaunch(application: application, launchOptions: launchOptions)
         }
-
-        configureRootViewController(animated: false)
-        window?.makeKeyAndVisible()
 
         return true
     }


    var window: UIWindow?

    // Anything that doesn't rely on the existence of a window should be in this preWindowConfigurations array
    let preWindowConfigurations: [AppLifecycle] = [
        LoggingConfiguration(),
        InstabugConfiguration(),

        ]

    // Anything that relies on the existence of a window and an initial viewcontroller should be in this postWindowConfigurations array
    let rootViewControllerDependentConfigurations: [AppLifecycle] = [
        DebugMenuConfiguration(),
        ]

