PushNotificationsCategoryBehaviour
public protocol PushNotificationsCategoryBehaviour : NotificationsSubcategoryBehaviour
Defines the behaviour of the Push Notifications category that clients will use
-
identifyUser(userId:AsynchronoususerProfile: ) Associates a given user ID with the current device
Declaration
Swift
func identifyUser(userId: String, userProfile: UserProfile?) async throwsParameters
userIdThe unique identifier for the user
userProfileAdditional specific data for the user
-
registerDevice(apnsToken:Asynchronous) Registers the given APNs token for this device, allowing it to receive Push Notifications
Declaration
Swift
func registerDevice(apnsToken: Data) async throwsParameters
apnsTokenA globally unique token that identifies this device to APNs
-
recordNotificationReceived(_:Asynchronous) Records that a notification has been received.
Declaration
Swift
func recordNotificationReceived(_ userInfo: Notifications.Push.UserInfo) async throwsParameters
userInfoA dictionary that contains information related to the remote notification
-
recordNotificationOpened(_:Asynchronous) Records that a notification was opened, i.e. the user tapped on it
Declaration
Swift
func recordNotificationOpened(_ response: UNNotificationResponse) async throwsParameters
responseThe user’s response to the notification
View on GitHub