Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created method to access sync functionality in in-app message offline … #836

Open
wants to merge 1 commit into
base: feature/itbl_track_anon_user
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions swift-sdk/IterableAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down