-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: display in-app messages with page rules set and kill/re-open app #746
fix: display in-app messages with page rules set and kill/re-open app #746
Conversation
Part of: https://linear.app/customerio/issue/MBL-373/[bug]-in-app-messages-do-not-show-on-ios-if-page-rules-are-enabled-and Persist the queue of in-app messages to disk on iOS, similar to the existing implementation on Android and web platforms. Testing: * Automated tests have been written and will be introduced in a future PR to keep the amount of changes low in this PR. The SDK is not setup for testing this code easily so some test setup code needs added first. Reviewer notes: * I implemented a network-level HTTP response body cache, similar to the Android and web SDKs. I considered caching the `MessageQueueManager` local message queue, but it required more code changes then this. I like the network-level approach since this is a requirement of the SDK based on the HTTP communication with the Gist backend server.
Sample app builds 📱Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request.
|
SDK binary size reports 📊SDK binary size of this PR
SDK binary size diff report between this PR and the main branch
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #746 +/- ##
==========================================
+ Coverage 61.05% 63.19% +2.13%
==========================================
Files 140 140
Lines 3962 3994 +32
==========================================
+ Hits 2419 2524 +105
+ Misses 1543 1470 -73 ☔ View full report in Codecov by Sentry. |
## [3.3.1](3.3.0...3.3.1) (2024-06-25) ### Bug Fixes * display in-app messages with page rules set and kill/re-open app ([#746](#746)) ([cfae57d](cfae57d))
Part of: https://linear.app/customerio/issue/MBL-373/[bug]-in-app-messages-do-not-show-on-ios-if-page-rules-are-enabled-and
Persist the queue of in-app messages to disk on iOS, similar to the existing implementation on Android and web platforms.
Testing:
Reviewer notes:
MessageQueueManager
local message queue, but it required more code changes then this. I like the network-level approach since this is a requirement of the SDK based on the HTTP communication with the Gist backend server.