purgePushNotificationsByCount

open suspend override fun purgePushNotificationsByCount(maxCount: Int, credentialId: String?): Int

Purge push notifications by count (removes oldest notifications when count exceeds the limit).

Return

The number of notifications removed.

Parameters

maxCount

The maximum number of notifications to keep.

credentialId

Optional ID of a specific credential to purge notifications for.

Throws

if the notifications cannot be purged.