iterable-android-sdk icon indicating copy to clipboard operation
iterable-android-sdk copied to clipboard

[MOB-9340] Fix for removing recalled campaigns from device memory

Open sumeruchat opened this issue 10 months ago • 0 comments

Ticket: https://iterable.atlassian.net/browse/MOB-9340

ISSUE: In-App Messages Remain Visible After Server Recall

PROBLEM DESCRIPTION: In-app messages continue to display on Android devices even after they've been recalled server-side. The SDK recognizes the recall event but fails to mark these messages as consumed locally, causing them to remain visible to users.

ROOT CAUSE: During synchronization, the SDK correctly identifies messages that have been removed from the server (missing from server response but present in local storage)

FIX IMPLEMENTED: Modified the syncWithRemoteQueue() method in IterableInAppManager.java to mark messages as consumed before removing them from storage when they're no longer present in the server response.

The changes are minimal and targeted, similar to the iOS fix. Added unit test to verify the fix works correctly.

sumeruchat avatar Mar 27 '25 18:03 sumeruchat