UnbluEncryptedNotificationServiceHelper

class UnbluEncryptedNotificationServiceHelper

This class decrypts the notification using AES 256 into a dictionary.

  • Storage used to persist and fetch the shared secret for encrypted notifications. Defaults to a shared Keychain-backed implementation.

    Declaration

    Swift

    static var preferencesStorage: any UnbluPreferencesStorage
  • Decodes encrypted notification data using the stored shared secret.

    Declaration

    Swift

    static func decode(_ encryptedData: String) -> [String : Any]?

    Parameters

    encryptedData

    The encrypted payload string.

    Return Value

    A dictionary with decrypted key–value pairs if successful, otherwise nil.