getOfflineEncryptionStatus static method
Offline: the encryption status of the local cache — what was achieved, not what was configured.
final status = CometChat.getOfflineEncryptionStatus();
print(status.toMap());
// { enabled: true, atRest: "SQLCIPHER", keyStorage: "KEYSTORE",
// cipherAvailable: true, cipher: "AES-256-CBC/HMAC-SHA512",
// leakage: null }
The combination worth checking for is enabled: true with
cipherAvailable: false — encryption was requested but is not actually
running. On Flutter that almost always means the required build-hook
stanza is missing from the app's own pubspec.yaml; see
docs/offline-cache-encryption.md.
Never returns the key, any part of it, or its length.
Implementation
static OfflineEncryptionStatus getOfflineEncryptionStatus() =>
OfflineRuntime.instance.getOfflineEncryptionStatus();