PushNotificationKeyStorage
public protocol PushNotificationKeyStorage : AnyObject
Undocumented
-
Persist the encryption key in local persistent storage.
Declaration
Swift
func onPersistKey(_ encryptionKey: String, expiryTime: Date) throwsParameters
encryptionKeya string which contains two keys. The first half is the key for authorization and the second half is the key for encryption. It is generated by chat sdk.
expiryTime45 minutes after the key is created. This time is generated by chat sdk.
-
Retrieve the valid keys previously stored in local persistent storage.
Declaration
Swift
func onRetrieveKeys() throws -> [String] -
decryptPayload(notification:Extension method) This method is used to decrypt notification payload in notification service extension.
Declaration
Swift
public func decryptPayload( notification: [AnyHashable: Any] ) throws -> PushNotificationEventParameters
notificationThe APNS push notification payload ( including “aps” and “data” )
View on GitHub
PushNotificationKeyStorage Protocol Reference