Notifications
NotificationServiceExtension
Declared In
SNRNotificationServiceExtension.h
Inherits From
Declaration
class NotificationServiceExtension: BaseModel
Methods
Enables/disables console logs from NotificationServiceExtension
.
static func setDebugModeEnabled(_: Bool)
Sets a fallback title and body for notification alert when decryption fails.
static func setDecryptionFallbackNotificationTitleAndBody(title: String, body: String)
Provides notification for processing by the SDK.
static func didReceiveNotificationExtensionRequest(_: UNNotificationRequest, withMutableNotificationContent: UNMutableNotificationContent)
Passes notification for processing by the SDK when the extension is terminated by the system.
static func serviceExtensionTimeWillExpireRequest(_: UNNotificationRequest, withMutableNotificationContent: UNMutableNotificationContent)
NotificationConfigurationHelper
Declared In
SNRNotificationConfigurationHelper.h
Inherits From
Declaration
class NotificationConfigurationHelper: NSObject
Initializers
init(notificationContent: UNMutableNotificationContent)
Methods
Enables/disables console logs from NotificationConfigurationHelper
.
func setDebugModeEnabled(_: Bool)
Configures categories for a notification.
func addCategories()
Configures attachments for a notification.
func addAttachments()
NotificationEncryptionHelper
Declared In
SNRNotificationEncryptionHelper.h
Inherits From
Declaration
class NotificationEncryptionHelper: NSObject
Methods
Enables/disables console logs from NotificationEncryptionHelper
.
func setDebugModeEnabled(_: Bool)
Checks if a notification is encrypted.
func isNotificationContentEncrypted(_: UNMutableNotificationContent) -> Bool
Checks if a notification user info is encrypted.
func isNotificationUserInfoEncrypted(_: [AnyHashable: Any]) -> Bool
Decrypts a notification.
func decryptNotificationContent(_: UNMutableNotificationContent) -> NotificationDecryptionResult
Decrypts a notification user info.
func decryptNotificationUserInfo(_: [AnyHashable: Any]) -> NotificationDecryptionResult
Gets console log description of the decryption result.
func getLogForDecryptionStatus(_: NotificationDecryptionResult) -> String
NotificationDecryptionResult
Declared In
SNRNotificationEncryptionHelper.h
Declaration
enum ClientSex: Int {
decryptSuccess,
decryptError,
unsuitableContentError,
encryptionConfigurationError,
keychainConfigurationError,
unknownError
}
NotificationAnalyticsHelper
Declared In
SNRNotificationAnalyticsHelper.h
Inherits From
Declaration
class NotificationAnalyticsHelper: NSObject
Initializers
init(notificationContent: UNMutableNotificationContent)
Methods
Enables/disables console logs from NotificationAnalyticsHelper
.
func setDebugModeEnabled(_: Bool)
Sends PushViewedEvent
.
func trackPushViewEvent()
Sends CustomEvent
with image timeout info.
func trackPushImageTimeoutEvent()
SingleMediaNotificationContentExtensionViewController
Declared In
SNRSingleMediaContentExtensionViewController.h
Inherits From
Declaration
class SingleMediaContentExtensionViewController: UIViewController
Methods
Sets a notification to generate a view.
func setSyneriseNotification(_: UNNotification)
Passes a notification response to interact with a view.
func setSyneriseNotificationResponse(_: UNNotificationResponse, completionHandler: ((UNNotificationContentExtensionResponseOption) -> Void))
CarouselNotificationContentExtensionViewController
Declared In
SNRCarouselContentExtensionViewController.h
Inherits From
Declaration
class CarouselContentExtensionViewController: UIViewController
Methods
Sets a notification to generate a view.
func setSyneriseNotification(_: UNNotification)
Passes a notification response to interact with a view.
func setSyneriseNotificationResponse(_: UNNotificationResponse, completionHandler: ((UNNotificationContentExtensionResponseOption) -> Void))