Skip to content

Commit d5d795c

Browse files
authored
Check for Pending Dynamic link guard check logic change (#5993)
Check for pending DL guard check logic change.
1 parent 8951338 commit d5d795c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

FirebaseDynamicLinks/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# v4.2.1
2+
- [fixed]Check for Pending Dynamic link guard check logic
3+
14
# v4.2.0
25
- [fixed] Fixed crashes that occur when a dynamic link is opened for the second time while an app is in the foreground (#5880)
36
- [Added] Plist property `FirebaseDeepLinkPasteboardRetrievalEnabled` to enable/disable fetching dynamic links from Pasteboard.

FirebaseDynamicLinks/Sources/FIRDynamicLinks.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,11 @@ - (void)checkForPendingDynamicLinkUsingExperimentalRetrievalProcess {
307307

308308
- (void)checkForPendingDynamicLink {
309309
// Make sure this method is called only once after the application was installed.
310-
BOOL appInviteDeepLinkRead = [_userDefaults boolForKey:kFIRDLReadDeepLinkAfterInstallKey];
310+
// kFIRDLOpenURLKey marks checkForPendingDynamic link had been called already so no need to do it
311+
// again. kFIRDLReadDeepLinkAfterInstallKey marks we have already read a deeplink after the
312+
// install and so no need to do check for pending dynamic link.
313+
BOOL appInviteDeepLinkRead = [_userDefaults boolForKey:kFIRDLOpenURLKey] ||
314+
[_userDefaults boolForKey:kFIRDLReadDeepLinkAfterInstallKey];
311315

312316
if (appInviteDeepLinkRead || self.retrievingPendingDynamicLink) {
313317
NSString *errorDescription =

0 commit comments

Comments
 (0)