Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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