App crashes when tapping on the Widget Extension in flutter iOS

App builds on Xcode Version is 14.3.1 and run on Simulator 14pro iOS 16.5. Widget is being displayed on Lock screen, when tapping on it, App gets crashed with exception below.

Role:                Foreground
Parent Process:      launchd_sim [39795]
Responsible Process: SimulatorTrampoline [1503]
OS Version:          macOS 13.2.1 (22D68)
Release Type:        User
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread:  0

Last Exception Backtrace:
0   CoreFoundation                	       0x10dff777b __exceptionPreprocess + 226
1   libobjc.A.dylib               	       0x10bdc8b73 objc_exception_throw + 48
2   CoreFoundation                	       0x10e07f806 _CFThrowFormattedException + 200
3   CoreFoundation                	       0x10e08a13a -[__NSPlaceholderDictionary initWithCapacity:].cold.1 + 0
4   CoreFoundation                	       0x10e06a538 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 283
5   CoreFoundation                	       0x10dff63af +[NSDictionary dictionaryWithObjects:forKeys:count:] + 49
6   Flutter                       	       0x117fb7736 __30-[FlutterAppDelegate openURL:]_block_invoke + 395
7   libdispatch.dylib             	       0x10e7f2e40 _dispatch_call_block_and_release + 12
8   libdispatch.dylib             	       0x10e7f40d9 _dispatch_client_callout + 8
9   libdispatch.dylib             	       0x10e803b86 _dispatch_main_queue_drain + 1330
10  libdispatch.dylib             	       0x10e803646 _dispatch_main_queue_callback_4CF + 31
11  CoreFoundation                	       0x10df556cc __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
12  CoreFoundation                	       0x10df4ffbe __CFRunLoopRun + 2429
13  CoreFoundation                	       0x10df4f264 CFRunLoopRunSpecific + 560
14  GraphicsServices              	       0x1165c624e GSEventRunModal + 139
15  UIKitCore                     	       0x12b7aa7bf -[UIApplication _run] + 994
16  UIKitCore                     	       0x12b7af5de UIApplicationMain + 123
17  Runner                        	       0x100e8821f main + 63 (AppDelegate.swift:6)
18  dyld_sim                      	       0x10963e384 start_sim + 10
19  dyld                          	       0x201220310 start + 2432

@mrutyunjaya This error belongs to the MethodSwizzling Problem in some other framework i.e. GoogleUtilities. It asks you to implement the below method. You need to override application:userActivity:restorationHandler: as below.

override func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool {
        ...
        Write your restoration code here. OR return true or false based on your requirement.
        ...
    }
App crashes when tapping on the Widget Extension in flutter iOS
 
 
Q