purgePushNotificationsByCount
abstract suspend fun purgePushNotificationsByCount(maxCount: Int, credentialId: String? = null): 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.