FAQ for Unity SDK
Why are there two subscribe methods?
The Unity SDK supports a modern, entity-based flow and retains a legacy Subscribe<string>()
for backward compatibility.
Use the modern flow documented in Subscribe. It creates a Subscription
or a SubscriptionSet
, uses an event listener, and can resume from a timetoken using a SubscriptionCursor
. The legacy builder pubnub.Subscribe<string>()
is documented in Subscribe (old) and remains for existing applications.
Why does encryption use AES-128 when CryptoModule
is configured?
If you pass the cipherKey
argument to Encrypt
, Decrypt
, EncryptFile
, or DecryptFile
, that argument overrides the configured CryptoModule
for that single operation and uses legacy Advanced Encryption Standard (AES) with 128-bit keys. Omit the cipherKey
argument to use the CryptoModule
configuration (AES‑256‑CBC). For partial encryption, create a separate CryptoModule
instance and call it directly where needed.
For details, refer to CryptoModule configuration.