From ac0a1453747dd08ab91df7965538c64944dc8e8e Mon Sep 17 00:00:00 2001 From: megha-iterable Date: Wed, 2 Oct 2024 16:52:04 +0530 Subject: [PATCH] Created method to access syn functionality in in-app message offline queue. --- swift-sdk/IterableAPI.swift | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/swift-sdk/IterableAPI.swift b/swift-sdk/IterableAPI.swift index ff52644e1..b5c2f7370 100644 --- a/swift-sdk/IterableAPI.swift +++ b/swift-sdk/IterableAPI.swift @@ -220,6 +220,19 @@ import UIKit return implementation.inAppManager } + /// The instance that manages getting and showing in-app messages + /// + /// ``` + /// IterableAPI.scheduleSync() + /// ``` + /// + /// - Remark: This variable will do nothing if the SDK has not been initialized yet + /// + /// - SeeAlso: IterableInAppManagerProtocol + public static func scheduleSync() { + _ = implementation?.inAppManager.scheduleSync() + } + public static var embeddedManager: IterableEmbeddedManagerProtocol { guard let implementation = implementation else { ITBError("The Iterable SDK is not initialized yet. Embedded Messaging will not function.")