FAQ for Swift Native SDK

Why are there two subscribe methods?

The Swift SDK supports a modern, entity-based flow and retains a legacy subscribe(...) for backward compatibility.

Use the modern flow documented in Subscribe. It creates a Subscription or a SubscriptionSet, uses an event listener API, and can resume from a timetoken with subscribe(with:). The legacy subscribe(to:and:at:withPresence:) is documented in Subscribe (old) and remains for existing applications.

Why does encryption use AES-128 when cryptoModule is configured?

Passing a direct cipher key to a method (where available) overrides the configured cryptoModule for that operation and uses legacy Advanced Encryption Standard (AES) with 128-bit keys. Remove the direct key argument to use the cryptoModule configuration (AES‑256‑CBC), or configure a separate cryptoModule instance for partial encryption scenarios.

For details, refer to Crypto module configuration.

Last updated on