RodrigoSMarques / flutter_branch_sdk

Flutter Plugin for create deep link using Branch Metrics SDK. This plugin provides a cross-platform (iOS, Android, Web).
https://branch.io
MIT License
100 stars 90 forks source link

App crash on iOS on flutter_branch_sdk: 8.0.2 #334

Closed Neelansh-ns closed 4 months ago

Neelansh-ns commented 5 months ago

Describe the bug We have seen this crash getting reported in Crashlytics for multiple users after upgrading to the lastest version of SDK 8.0.2

Crash Report

      Crashed: com.apple.main-thread
0  flutter_branch_sdk             0xc3b8 $s18flutter_branch_sdk27SwiftFlutterBranchSdkPluginC11application_8continue18restorationHandlerSbSo13UIApplicationC_So14NSUserActivityCySayypGctFTo + 208
1  Flutter                        0x29950 (Missing UUID 4c4c44bd55553144a1714204dc08bdb2)
2  Flutter                        0xfff4 (Missing UUID 4c4c44bd55553144a1714204dc08bdb2)
3  GoogleUtilities                0x9cdc -[GULAppDelegateSwizzler application:continueUserActivity:restorationHandler:] + 296
4  FBSDKCoreKit                   0x558f8 fb_swizzledMethod_5 + 168
5  UIKitCore                      0xe2fbcc -[UIApplication activityContinuationManager:continueUserActivity:] + 196
6  UIKitCore                      0x11620bc -[UIActivityContinuationManager _continueUserActivity:] + 60
7  UIKitCore                      0x1162d78 __72-[UIActivityContinuationManager handleActivityContinuation:isSuspended:]_block_invoke_3 + 68
8  UIKitCore                      0x7ac6f8 -[_UIApplicationModalProgressController _callAndClearDismissalHandlerWasDismissedByUser:] + 76
9  UIKitCore                      0x7acab4 -[_UIApplicationModalProgressController hideAfterMinimumUptimeWithDismissalHandler:] + 228
10 UIKitCore                      0xe2f8c4 -[UIApplication activityContinuationManager:hideProgressUIWithCompletion:] + 168
11 UIKitCore                      0x1162058 -[UIActivityContinuationManager _endCurrentActivityContinuationWithCompletion:] + 68
12 UIKitCore                      0x1162b4c __72-[UIActivityContinuationManager handleActivityContinuation:isSuspended:]_block_invoke_2 + 216
13 libdispatch.dylib              0x213c _dispatch_call_block_and_release + 32
14 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
15 libdispatch.dylib              0x125a4 _dispatch_main_queue_drain + 988
16 libdispatch.dylib              0x121b8 _dispatch_main_queue_callback_4CF + 44
17 CoreFoundation                 0x3751c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
18 CoreFoundation                 0x34218 __CFRunLoopRun + 1996
19 CoreFoundation                 0x33968 CFRunLoopRunSpecific + 608
20 GraphicsServices               0x34e0 GSEventRunModal + 164
21 UIKitCore                      0x22aedc -[UIApplication _run] + 888
22 UIKitCore                      0x22a518 UIApplicationMain + 340
23 UIKitCore                      0x463734 __swift_destroy_boxed_opaque_existential_1Tm + 12004
24 Runner                         0xc158 main + 116 (AppDelegate.swift:116)
25 ???                            0x1bfbdad84 (Missing)

Smartphone (Please complete the following information. remove session if not platform):

RodrigoSMarques commented 5 months ago

Was only the plugin (flutter_branch_sdk) updated in this new version of your application?

According to the stack trace, where the error is occurring there has not been any type of change in version.

I observe that other packages are being called before in the same method (continueUserActivity) that caused the error in the Branch SDK.

RodrigoSMarques commented 4 months ago

Closed. No activity in the last 14 days. If necessary open again.