Skip to content
This repository was archived by the owner on Sep 23, 2024. It is now read-only.

Commit 6b9b3e3

Browse files
committed
🔗 EasyLink App Store redirect option
1 parent ed3f4d4 commit 6b9b3e3

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
Binary file not shown.

Sources/EasyFirebase/Services/Dynamic Links/EasyLink.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public struct EasyLink {
2424
public static var appStoreID: String?
2525
public static var minimumAppVersion: String?
2626
public static var backupURL: URL?
27+
public static var redirectToAppStore: Bool = true
2728

2829
// MARK: - Public Properties
2930

@@ -44,6 +45,9 @@ public struct EasyLink {
4445
if let appStoreID = Self.appStoreID {
4546
builder.queryItems?.append(.init(name: "isi", value: appStoreID))
4647
}
48+
if !Self.redirectToAppStore, let backupURL = Self.backupURL {
49+
builder.queryItems?.append(.init(name: "ifl", value: backupURL.absoluteString))
50+
}
4751
if let minimumAppVersion = Self.minimumAppVersion {
4852
builder.queryItems?.append(.init(name: "imv", value: minimumAppVersion))
4953
}

0 commit comments

Comments
 (0)