[REQUIRED] Step 1: Describe your environment
- Xcode version: Xcode 11
- Firebase SDK version: 6.13.0 ~ 6.25.0
- Firebase Component: Dynamic Links
- Component version: _____
- Installation method:
CocoaPods (select one)
[REQUIRED] Step 2: Describe the problem
Steps to reproduce:
What happened? How can we make the problem occur?
- Simply press another or the same dynamic link for the second time when the app has been opened by a dynamic link (or a dynamic link has already been pressed beforehand); this would crash the app and the following is logged in Crashlytics
FIRDynamicLinks.m line 458
__50-[FIRDynamicLinks handleUniversalLink:completion:]_block_invoke_2
https://github.com/firebase/firebase-ios-sdk/blob/master/FirebaseDynamicLinks/Sources/FIRDynamicLinkNetworking.m#L68
Relevant Code:
This issue has been raised here: invertase/react-native-firebase#2807
With a solution by @rszalski at invertase/react-native-firebase#2807 (comment)
Replacing
NSURLSession *session = [NSURLSession sharedSession];
with
NSURLSessionConfiguration *sessionConfig = [NSURLSessionConfiguration defaultSessionConfiguration];
NSURLSession *session = [NSURLSession sessionWithConfiguration:sessionConfig];
Fixes the issue, but is there any side effect to it?