Skip to content

Commit 19be619

Browse files
Merge pull request #429 from Iterable/bug/mob-2407-universal-link
[MOB-2407] - Fix initialization issue for deep links
2 parents 326e4ca + 66cf3f7 commit 19be619

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

swift-sdk/IterableAPI.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,12 @@ public final class IterableAPI: NSObject {
129129
@objc(handleUniversalLink:)
130130
@discardableResult
131131
public static func handle(universalLink url: URL) -> Bool {
132-
internalImplementation?.handleUniversalLink(url) ?? false
132+
if let internalImplementation = internalImplementation {
133+
return internalImplementation.handleUniversalLink(url)
134+
} else {
135+
IterableAPIInternal.pendingUniversalLink = url
136+
return false
137+
}
133138
}
134139

135140
/// Add an entry in the device attributes

0 commit comments

Comments
 (0)