recordNotificationEvent

public static void recordNotificationEvent(PushNotificationMessage pushNotificationMessage, PushType pushType)

Uploads the click event of a push notification. The open rate of push notifications in the developer backend is calculated based on this event uploaded by the client.

Parameters

pushNotificationMessage

The push notification message

pushType

The type of push notification


@Deprecated()
public static void recordNotificationEvent(String pushId)

Deprecated

Records the click event of a push notification when using the backend push feature in the Developer Console. The push open rate in the Developer Console is calculated based on this event uploaded by the client. * For versions prior to 2.6.0, please search for the tag push in the knowledge base for related instructions on using the push open rate. * For versions after 2.6.0, if the user is using the SDK's built-in notification implementation, there is no need to call this method to track the push open rate, as the SDK handles the statistics internally. * However, if the user has customized the display of the notification bar for push notifications, this method must be called when the notification is clicked to upload the push open event to the server.

Deprecated

This method is deprecated.

Parameters

pushId

The ID of the push notification. This value is only populated when using the Developer Console for broadcast messages and push services; it is empty in all other non-backend scenarios.