PushNotificationsCategory
public final class PushNotificationsCategory : Category
extension PushNotificationsCategory: Resettable
extension PushNotificationsCategory: PushNotificationsCategoryBehaviour
extension PushNotificationsCategory: DefaultLogger
The Push Notifications category allows you to receive and report push notifications.
-
Push Notifications category type
Declaration
Swift
public let categoryType: CategoryType
-
Adds
pluginto the list of Plugins that implement functionality for this category.Declaration
Swift
public func add(plugin: PushNotificationsCategoryPlugin) throwsParameters
pluginThe Plugin to add
-
Returns the added plugin with the specified
keyproperty.Declaration
Swift
public func getPlugin(for key: PluginKey) throws -> PushNotificationsCategoryPluginParameters
keyThe PluginKey (String) of the plugin to retrieve
Return Value
The wrapped plugin
-
Removes the plugin registered for
keyfrom the list of Plugins that implement functionality for this category. If no plugin has been added forkey, no action is taken, making this method safe to call multiple times.Declaration
Swift
public func removePlugin(for key: PluginKey)Parameters
keyThe key used to
addthe plugin -
reset()AsynchronousDeclaration
Swift
public func reset() async -
identifyUser(userId:AsynchronoususerProfile: ) Declaration
Swift
public func identifyUser(userId: String, userProfile: UserProfile? = nil) async throws -
registerDevice(apnsToken:Asynchronous) Declaration
Swift
public func registerDevice(apnsToken: Data) async throws -
recordNotificationReceived(_:Asynchronous) Declaration
Swift
public func recordNotificationReceived(_ userInfo: Notifications.Push.UserInfo) async throws -
recordNotificationOpened(_:Asynchronous) Declaration
Swift
public func recordNotificationOpened(_ response: UNNotificationResponse) async throws -
Declaration
Swift
public static var log: Logger { get } -
Declaration
Swift
public var log: Logger { get }
View on GitHub