From 56f29b83063548d49f0bd1e50a7196b658d76286 Mon Sep 17 00:00:00 2001 From: Hamza-Ayed Date: Mon, 18 May 2026 16:41:16 +0300 Subject: [PATCH] fix: stabilize iOS launch and remove SceneDelegate dependency --- whatsapp_app/ios/Runner/AppDelegate.swift | 16 +++++----------- whatsapp_app/ios/Runner/Info.plist | 21 --------------------- 2 files changed, 5 insertions(+), 32 deletions(-) diff --git a/whatsapp_app/ios/Runner/AppDelegate.swift b/whatsapp_app/ios/Runner/AppDelegate.swift index 23e2922..ec72a54 100644 --- a/whatsapp_app/ios/Runner/AppDelegate.swift +++ b/whatsapp_app/ios/Runner/AppDelegate.swift @@ -2,19 +2,13 @@ import Flutter import UIKit @main -@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate { +@objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { - if self.window == nil { - self.window = UIWindow(frame: UIScreen.main.bounds) - self.window?.rootViewController = UIViewController() - } - return super.application(application, didFinishLaunchingWithOptions: launchOptions) + let result = super.application(application, didFinishLaunchingWithOptions: launchOptions) + GeneratedPluginRegistrant.register(with: self) + return result } - - func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) { - GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry) - } -} +} \ No newline at end of file diff --git a/whatsapp_app/ios/Runner/Info.plist b/whatsapp_app/ios/Runner/Info.plist index ad4f66e..19b513a 100644 --- a/whatsapp_app/ios/Runner/Info.plist +++ b/whatsapp_app/ios/Runner/Info.plist @@ -26,27 +26,6 @@ $(FLUTTER_BUILD_NUMBER) LSRequiresIPhoneOS - UIApplicationSceneManifest - - UIApplicationSupportsMultipleScenes - - UISceneConfigurations - - UIWindowSceneSessionRoleApplication - - - UISceneClassName - UIWindowScene - UISceneConfigurationName - flutter - UISceneDelegateClassName - $(PRODUCT_MODULE_NAME).SceneDelegate - UISceneStoryboardFile - Main - - - - UIApplicationSupportsIndirectInputEvents UILaunchStoryboardName