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
plugin
to the list of Plugins that implement functionality for this category.Declaration
Swift
public func add(plugin: PushNotificationsCategoryPlugin) throws
Parameters
plugin
The Plugin to add
-
Returns the added plugin with the specified
key
property.Declaration
Swift
public func getPlugin(for key: PluginKey) throws -> PushNotificationsCategoryPlugin
Parameters
key
The PluginKey (String) of the plugin to retrieve
Return Value
The wrapped plugin
-
Removes the plugin registered for
key
from 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
key
The key used to
add
the 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 }