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 have a look at the source codes of Android SDK and have a question about this code:
OneSignal-Android-SDK/OneSignalSDK/onesignal/notifications/src/main/java/com/onesignal/notifications/internal/lifecycle/impl/NotificationLifecycleService.kt
Lines 62 to 67 in 9cf7cd0
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