Skip to content

Conversation

@marqroldan
Copy link
Contributor

@marqroldan marqroldan commented Jun 29, 2020

Recreate the session to avoid crash when opening another or the same dynamic link (app already opened by a dynamic or have already processed one)
Thanks @rszalski for the solution!

Fix #5880

Recreate the session to avoid crash when opening another or the same dynamic link (app already opened by a dynamic or have already processed one)
Copy link

@rszalski rszalski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for making this PR! Not sure how FB team feels about it but I think we could add a short comment here explaining this approach. I think otherwise it would be too easy for someone to come in, say “This looks inefficient, let me use a shared session here” and revert it back and introduce a regression. Thoughts?

@eldhosembabu
Copy link
Contributor

Changes looks good to me. Deferring to @paulb777 for approval

@eldhosembabu eldhosembabu requested a review from paulb777 July 1, 2020 21:15
@paulb777
Copy link
Member

paulb777 commented Jul 1, 2020

Thanks for the fix @marqroldan and thanks for the review @eldhosembabu.

Before merging I'd like to get a resolution to @ncooke3's question about reproduction.

Do either of you have that? Thanks!

@ncooke3
Copy link
Member

ncooke3 commented Jul 2, 2020

Thanks for the fix @marqroldan and thanks for the review @eldhosembabu.

Before merging I'd like to get a resolution to @ncooke3's question about reproduction.

Do either of you have that? Thanks!

@paulb777 Ironically enough, I was able to accidentally reproduce this issue while testing another dynamic links issue (on iOS14)! I was then able to apply @marqroldan 's proposed fix and the crash was avoided. 👍

@paulb777
Copy link
Member

paulb777 commented Jul 2, 2020

Sounds good. I'll merge.

@ncooke3 (or anyone else on the thread). I'd a appreciate another PR with the appropriate update to https://github.com/firebase/firebase-ios-sdk/blob/master/FirebaseDynamicLinks/CHANGELOG.md

@paulb777 paulb777 merged commit e8326fa into firebase:master Jul 2, 2020
@paulb777 paulb777 added this to the 6.28.0 - M75 milestone Jul 2, 2020
granluo pushed a commit that referenced this pull request Jul 7, 2020
Recreate the session to avoid crash when opening another or the same dynamic link (app already opened by a dynamic or have already processed one)
@firebase firebase locked and limited conversation to collaborators Aug 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

159827739: Dynamic Links - App crashes when a dynamic link is pressed for the second time while the app is on foreground

6 participants