Skip to content
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

feat: support for large in-app messages #456

Merged
merged 8 commits into from
Nov 13, 2024
Merged

Conversation

Shahroz16
Copy link
Contributor

closes: MBL-547: Bug: Large in-app messages not getting delivered

changes:

  • Make JS post request for sending is message payload rather than query params
  • Persistent messages are now added to shownMessageQueueIds only after dismissal, aligning with how we handle in-app message viewed logs in our middleware today

Copy link

github-actions bot commented Oct 24, 2024

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.


Copy link

codecov bot commented Oct 24, 2024

Codecov Report

Attention: Patch coverage is 18.33333% with 49 lines in your changes missing coverage. Please review.

Project coverage is 51.78%. Comparing base (8b30804) to head (fb1fa71).
Report is 19 commits behind head on main.

Files with missing lines Patch % Lines
...inginapp/gist/presentation/engine/EngineWebView.kt 0.00% 33 Missing ⚠️
.../messaginginapp/state/InAppMessagingMiddlewares.kt 28.57% 3 Missing and 2 partials ⚠️
...stomer/messaginginapp/state/InAppMessageReducer.kt 63.63% 2 Missing and 2 partials ⚠️
...tomer/messaginginapp/state/InAppMessagingAction.kt 33.33% 1 Missing and 3 partials ⚠️
...io/customer/messaginginapp/gist/GistEnvironment.kt 0.00% 2 Missing ⚠️
...tomer/messaginginapp/gist/presentation/GistView.kt 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #456      +/-   ##
============================================
+ Coverage     41.98%   51.78%   +9.79%     
- Complexity      259      290      +31     
============================================
  Files            99       96       -3     
  Lines          2320     2584     +264     
  Branches        344      355      +11     
============================================
+ Hits            974     1338     +364     
+ Misses         1247     1138     -109     
- Partials         99      108       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Build available to test
Version: gist-web-rendering-update-SNAPSHOT
Repository: https://s01.oss.sonatype.org/content/repositories/snapshots/

Copy link

github-actions bot commented Oct 24, 2024

📏 SDK Binary Size Comparison Report

No changes detected in SDK binary size ✅

Copy link
Contributor

@mrehan27 mrehan27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall. Assuming this has been fully tested in Production environment as well, the changes look good to me.

@Shahroz16 Shahroz16 self-assigned this Oct 25, 2024
Copy link
Contributor

@stephen-pope-customer-io stephen-pope-customer-io left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great!

Copy link

github-actions bot commented Nov 6, 2024

  • java_layout: gist-web-rendering-update (1730906469)

Copy link

github-actions bot commented Nov 6, 2024

  • kotlin_compose: gist-web-rendering-update (1730906488)

Copy link

  • java_layout: gist-web-rendering-update (1731436949)

Copy link

  • kotlin_compose: gist-web-rendering-update (1731436961)

@Shahroz16 Shahroz16 merged commit b8331bf into main Nov 13, 2024
35 checks passed
@Shahroz16 Shahroz16 deleted the gist-web-rendering-update branch November 13, 2024 10:48
github-actions bot pushed a commit that referenced this pull request Nov 13, 2024
## [4.4.0](4.3.0...4.4.0) (2024-11-13)

### Features

* support for large in-app messages ([#456](#456)) ([b8331bf](b8331bf))

it.webViewClient = object : WebViewClient() {
override fun onPageFinished(view: WebView, url: String?) {
view.loadUrl("javascript:window.parent.postMessage = function(message) {window.${EngineWebViewInterface.JAVASCRIPT_INTERFACE_NAME}.postMessage(JSON.stringify(message))}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is what's breaking the bridge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants