Skip to content

[question]: Why doesn't the SDK clean up the queue of unprocessed notifications after processing them? #2254

@hnvn

Description

@hnvn

I have a look at the source codes of Android SDK and have a question about this code:

if (extOpenedCallback.hasSubscribers && unprocessedOpenedNotifs.any()) {
for (data in unprocessedOpenedNotifs) {
val openedResult = NotificationHelper.generateNotificationOpenedResult(data, _time)
extOpenedCallback.fireOnMain { it.onClick(openedResult) }
}
}

After looping over and handling the unprocessed notifications, the SDK doesn't clean up the queue, which can cause duplication issues in the next processing cycle.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions