NotificationFactory

Responsible for generating instances of PushNotification.

Constructors

Link copied to clipboard
constructor(storageClient: StorageClient)
Creates the NotificationFactory

Properties

Link copied to clipboard
private val DEFAULT_TTL_SECONDS: Int = 120
Link copied to clipboard
val MESSAGE: String = "message"
Link copied to clipboard
val MESSAGE_ID: String = "messageId"
Link copied to clipboard
private open var storageClient: StorageClient
Link copied to clipboard
private val TAG: String

Functions

Link copied to clipboard
private open fun generateNotification(mechanismUid: String, messageId: String, message: String, base64Challenge: String, amlbCookie: String, customPayload: String, numbersChallenge: String, pushType: String, contextInfo: String, timeInterval: Long, ttl: Int): PushNotification
Link copied to clipboard
open fun handleMessage(@NonNull message: RemoteMessage): PushNotification
Process a FCM remote message into a PushNotification object
open fun handleMessage(@NonNull messageId: String, @NonNull message: String): PushNotification
Process the parameters from a FCM remote message into a PushNotification object
Link copied to clipboard
private open fun verify(base64Secret: String, signedJwt: SignedJWT): Boolean